]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ListCtrl_edit.py
Another package name fix
[wxWidgets.git] / wxPython / demo / ListCtrl_edit.py
index 4a8a65e3e32be2f3258ab897b587e0ee23793a78..e4dfe4fc06611da1566595e47ede27430cfde61c 100644 (file)
@@ -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)