]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Listbook.py
Remove non-ascii characters
[wxWidgets.git] / wxPython / demo / Listbook.py
index c17359a4beb6c5696b91a8468f2324a002408d8e..995c25aa12e38c7711553c53efc18361f903b7b4 100644 (file)
@@ -1,6 +1,4 @@
 
-import  sys
-
 import  wx
 
 import ColorPanel
@@ -36,10 +34,9 @@ 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):
+        for x in range(1, 16):
             f = getattr(images, 'getBlom%02dBitmap' % x)
             bmp = f()
             il.Add(bmp)
@@ -61,11 +58,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 +110,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:])
+