wx.lib.customtreectrl patches from Andrea:
1. ExpandAll has been renamed as ExpandAllChildren, and the new ExpandAll now takes no input arguments (consistent with wx.TreeCtrl) 2. ctstyle keyword is now defaulted to 0: every style related to CustomTreeCtrl and the underlying wx.PyScrolledWindow should be declared using the keyword "style" only. For backward compatibility, ctstyle continues to work as I merged ctstyle and style in the __init__ method. 3. GetClassDefaultAttributes is now a classmethod. 4. UnselectAll bug fixed. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -764,7 +764,8 @@ class CustomTreeCtrlDemo(wx.Panel):
|
||||
splitter = wx.SplitterWindow(self, -1, style=wx.CLIP_CHILDREN | wx.SP_LIVE_UPDATE | wx.SP_3D)
|
||||
|
||||
# Create the CustomTreeCtrl, using a derived class defined below
|
||||
self.tree = CustomTreeCtrl(splitter, -1, log=self.log, style=wx.SUNKEN_BORDER)
|
||||
self.tree = CustomTreeCtrl(splitter, -1, log=self.log,
|
||||
style= wx.SUNKEN_BORDER| CT.TR_HAS_BUTTONS | CT.TR_HAS_VARIABLE_ROW_HEIGHT)
|
||||
|
||||
self.leftpanel = wx.ScrolledWindow(splitter, -1, style=wx.SUNKEN_BORDER)
|
||||
self.leftpanel.SetScrollRate(20,20)
|
||||
@@ -1239,11 +1240,10 @@ class CustomTreeCtrl(CT.CustomTreeCtrl):
|
||||
|
||||
def __init__(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition,
|
||||
size=wx.DefaultSize,
|
||||
style=wx.SUNKEN_BORDER,
|
||||
ctstyle=CT.TR_HAS_BUTTONS | CT.TR_HAS_VARIABLE_ROW_HEIGHT,
|
||||
style=wx.SUNKEN_BORDER | CT.TR_HAS_BUTTONS | CT.TR_HAS_VARIABLE_ROW_HEIGHT,
|
||||
log=None):
|
||||
|
||||
CT.CustomTreeCtrl.__init__(self, parent, id, pos, size, style, ctstyle)
|
||||
CT.CustomTreeCtrl.__init__(self, parent, id, pos, size, style)
|
||||
|
||||
alldata = dir(CT)
|
||||
|
||||
|
Reference in New Issue
Block a user