X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c7fd46620119c95281a602f9813bb1d27a5e224..0a5bb138a71dfc1c706fc0858fb2801500e2c2e8:/wxPython/demo/Treebook.py?ds=sidebyside diff --git a/wxPython/demo/Treebook.py b/wxPython/demo/Treebook.py index fded8080a5..ec3b1d1020 100644 --- 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) + # This is a workaround for a sizing bug on Mac... wx.FutureCall(100, self.AdjustSize) def AdjustSize(self): - print self.GetTreeCtrl().GetBestSize() + #print self.GetTreeCtrl().GetBestSize() self.GetTreeCtrl().InvalidateBestSize() self.SendSizeEvent() - print self.GetTreeCtrl().GetBestSize() + #print self.GetTreeCtrl().GetBestSize() def makeColorPanel(self, color):