projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more changes from 2.8.4 added
[wxWidgets.git]
/
wxPython
/
demo
/
Treebook.py
diff --git
a/wxPython/demo/Treebook.py
b/wxPython/demo/Treebook.py
index fded8080a5112d0d0a3548afa51a10e84b31bc75..ec3b1d1020dcc51942c7e41609843e08854fca77 100644
(file)
--- a/
wxPython/demo/Treebook.py
+++ b/
wxPython/demo/Treebook.py
@@
-60,13
+60,14
@@
class TestTB(wx.Treebook):
self.Bind(wx.EVT_TREEBOOK_PAGE_CHANGED, self.OnPageChanged)
self.Bind(wx.EVT_TREEBOOK_PAGE_CHANGING, self.OnPageChanging)
self.Bind(wx.EVT_TREEBOOK_PAGE_CHANGED, self.OnPageChanged)
self.Bind(wx.EVT_TREEBOOK_PAGE_CHANGING, self.OnPageChanging)
+ # This is a workaround for a sizing bug on Mac...
wx.FutureCall(100, self.AdjustSize)
def AdjustSize(self):
wx.FutureCall(100, self.AdjustSize)
def AdjustSize(self):
- print self.GetTreeCtrl().GetBestSize()
+
#
print self.GetTreeCtrl().GetBestSize()
self.GetTreeCtrl().InvalidateBestSize()
self.SendSizeEvent()
self.GetTreeCtrl().InvalidateBestSize()
self.SendSizeEvent()
- print self.GetTreeCtrl().GetBestSize()
+
#
print self.GetTreeCtrl().GetBestSize()
def makeColorPanel(self, color):
def makeColorPanel(self, color):