X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5924f6b37d26362c7199838c413752f56e6fc880..b4eecebd423df0c6efe86d7658cd3df818d67ed8:/wxPython/demo/ListCtrl_edit.py diff --git a/wxPython/demo/ListCtrl_edit.py b/wxPython/demo/ListCtrl_edit.py index 4a8a65e3e3..e4dfe4fc06 100644 --- a/wxPython/demo/ListCtrl_edit.py +++ b/wxPython/demo/ListCtrl_edit.py @@ -89,7 +89,8 @@ class TestListCtrlPanel(wx.Panel): sizer = wx.BoxSizer(wx.VERTICAL) - if wx.Platform == "__WXMAC__": + if wx.Platform == "__WXMAC__" and \ + hasattr(wx.GetApp().GetTopWindow(), "LoadDemo"): self.useNative = wx.CheckBox(self, -1, "Use native listctrl") self.useNative.SetValue( not wx.SystemOptions.GetOptionInt("mac.listctrl.always_use_generic") ) @@ -102,7 +103,7 @@ class TestListCtrlPanel(wx.Panel): | wx.LC_SORT_ASCENDING ) - sizer.Add(self.list, 1, wx.EXPAND | wx.ALL, 4) + sizer.Add(self.list, 1, wx.EXPAND) self.SetSizer(sizer) self.SetAutoLayout(True)