]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ListCtrl.py
The great wxVScrolledWindow refactoring: allow using it both horizontal and
[wxWidgets.git] / wxPython / demo / ListCtrl.py
index 0fb6d95166847d3835dcb85d7566b7fbcc8f32ca..c766332fe9a7f00a408f5a936cc26f55b4f0915a 100644 (file)
@@ -93,7 +93,8 @@ class TestListCtrlPanel(wx.Panel, listmix.ColumnSorterMixin):
         
         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") )
@@ -119,7 +120,7 @@ class TestListCtrlPanel(wx.Panel, listmix.ColumnSorterMixin):
                                  )
         
         self.list.SetImageList(self.il, wx.IMAGE_LIST_SMALL)
-        sizer.Add(self.list, 1, wx.EXPAND | wx.ALL, 4)
+        sizer.Add(self.list, 1, wx.EXPAND)
 
         self.PopulateList()