X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6aabc8da32849c251b0ec87e339ef4485f35ebea..75c8d68f1d61059d9e290a65d9399e0e89cc8ff1:/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