X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c75a4cf0f94cbe53bfde4fbcddff741158fbc7c..e81b607b4322af54190484aa7ee34112337a344e:/wxPython/demo/Listbook.py?ds=sidebyside diff --git a/wxPython/demo/Listbook.py b/wxPython/demo/Listbook.py index 20115cbf60..56617a0e79 100644 --- a/wxPython/demo/Listbook.py +++ b/wxPython/demo/Listbook.py @@ -14,11 +14,11 @@ colourList = [ "Aquamarine", "Black", "Blue", "Blue Violet", "Brown", "Cadet Blu class TestLB(wx.Listbook): def __init__(self, parent, id, log): wx.Listbook.__init__(self, parent, id, style= - wx.LB_DEFAULT - #wxLB_TOP - #wxLB_BOTTOM - #wxLB_LEFT - #wxLB_RIGHT + wx.BK_DEFAULT + #wx.BK_TOP + #wx.BK_BOTTOM + #wx.BK_LEFT + #wx.BK_RIGHT ) self.log = log @@ -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