X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95bfd958bda8955ac81277c78e5627c926154f39..52f52ebc4e0be6a9899d328b08db9eb14629d219:/wxPython/demo/Listbook.py?ds=sidebyside diff --git a/wxPython/demo/Listbook.py b/wxPython/demo/Listbook.py index c17359a4be..67e82d8f90 100644 --- a/wxPython/demo/Listbook.py +++ b/wxPython/demo/Listbook.py @@ -36,7 +36,6 @@ class TestLB(wx.Listbook): ) self.log = log - # make an image list using the BlomXX images il = wx.ImageList(32, 32) for x in range(1, 15): @@ -61,11 +60,9 @@ class TestLB(wx.Listbook): #st.SetForegroundColour(wxWHITE) #st.SetBackgroundColour(wxBLUE) first = False - - - wx.EVT_LISTBOOK_PAGE_CHANGED(self, self.GetId(), self.OnPageChanged) - wx.EVT_LISTBOOK_PAGE_CHANGING(self, self.GetId(), self.OnPageChanging) + self.Bind(wx.EVT_LISTBOOK_PAGE_CHANGED, self.OnPageChanged) + self.Bind(wx.EVT_LISTBOOK_PAGE_CHANGING, self.OnPageChanging) def makeColorPanel(self, color): @@ -118,3 +115,4 @@ if __name__ == '__main__': run.main(['', os.path.basename(sys.argv[0])]) +