X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/299647acac7960652aadb008775429c1f8ea9b8d..4d01e350fe2d8cb15c068d579c4022345f3ff0c0:/wxPython/demo/TreeListCtrl.py diff --git a/wxPython/demo/TreeListCtrl.py b/wxPython/demo/TreeListCtrl.py index 4015c0665f..6580c07d5a 100644 --- a/wxPython/demo/TreeListCtrl.py +++ b/wxPython/demo/TreeListCtrl.py @@ -1,7 +1,3 @@ -# 11/22/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Updated for wx namespace -# import wx import wx.gizmos as gizmos @@ -16,11 +12,20 @@ class TestPanel(wx.Panel): wx.Panel.__init__(self, parent, -1) self.Bind(wx.EVT_SIZE, self.OnSize) - self.tree = gizmos.TreeListCtrl(self, -1, style = wx.TR_DEFAULT_STYLE - #| wx.TR_ROW_LINES - #| wx.TR_NO_LINES - #| wx.TR_TWIST_BUTTONS + self.tree = gizmos.TreeListCtrl(self, -1, style = + wx.TR_DEFAULT_STYLE + #wx.TR_TWIST_BUTTONS + #| wx.TR_ROW_LINES + #| wx.TR_NO_LINES + | wx.TR_FULL_ROW_HIGHLIGHT + + # By default the style will be adjusted on + # Mac to use twisty buttons and no lines. If + # you would rather control this yourself then + # add this style. + #| wx.TR_DONT_ADJUST_MAC ) + isz = (16,16) il = wx.ImageList(isz[0], isz[1]) fldridx = il.Add(wx.ArtProvider_GetBitmap(wx.ART_FOLDER, wx.ART_OTHER, isz)) @@ -104,9 +109,9 @@ def runTest(frame, nb, log): overview = """
-