X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6aabc8da32849c251b0ec87e339ef4485f35ebea..32cd189dfcfe96c41e32c3b9827bf67484c60b13:/wxPython/demo/Treebook.py diff --git a/wxPython/demo/Treebook.py b/wxPython/demo/Treebook.py index d69d41d5e5..509e3548df 100644 --- a/wxPython/demo/Treebook.py +++ b/wxPython/demo/Treebook.py @@ -66,6 +66,7 @@ class TestTB(wx.Treebook): win = ColorPanel.ColoredPanel(p, color) p.win = win def OnCPSize(evt, win=win): + win.SetPosition((0,0)) win.SetSize(evt.GetSize()) p.Bind(wx.EVT_SIZE, OnCPSize) return p