]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Listbook.py
Script updates
[wxWidgets.git] / wxPython / demo / Listbook.py
index c17359a4beb6c5696b91a8468f2324a002408d8e..67e82d8f901f4f6db0d0841637a997ed91156541 100644 (file)
@@ -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])])
 
 
+