minor layout tweak

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-02-02 01:47:16 +00:00
parent 6aabc8da32
commit e79c4165b4
4 changed files with 9 additions and 12 deletions

View File

@@ -54,6 +54,7 @@ class TestLB(wx.Listbook):
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