]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Listbook.py
PrintFramework fixes
[wxWidgets.git] / wxPython / demo / Listbook.py
index c17359a4beb6c5696b91a8468f2324a002408d8e..cc3f2f77d956cc72e50bc28b7199ec8aa76c7826 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):
@@ -115,6 +112,7 @@ wx.ListCtrl instead of a set of tabs.
 if __name__ == '__main__':
     import sys,os
     import run
-    run.main(['', os.path.basename(sys.argv[0])])
+    run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])
+