]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Notebook.py
Automatically disable wxDialupManager for wxMac and wxCocoa,
[wxWidgets.git] / wxPython / demo / Notebook.py
index c9740ce678b5d31bcca99a7b2ef3a55d62e8e31c..3f369001f3a121a608d1302c1aaa86466cd2f058 100644 (file)
@@ -1,7 +1,3 @@
-# 11/20/2003 - Jeff Grimmett (grimmtooth@softhome.net)
-#
-# o Updated for wx namespace
-# 
 
 import  sys
 
 
 import  sys
 
@@ -17,12 +13,13 @@ import  images
 
 class TestNB(wx.Notebook):
     def __init__(self, parent, id, log):
 
 class TestNB(wx.Notebook):
     def __init__(self, parent, id, log):
-        wx.Notebook.__init__(self, parent, id, style=
-                            #wxNB_TOP
-                            wx.NB_BOTTOM
-                            #wxNB_LEFT
-                            #wxNB_RIGHT
-                            )
+        wx.Notebook.__init__(self, parent, id, size=(21,21),
+                             #style=
+                             #wx.NB_TOP # | wx.NB_MULTILINE
+                             #wx.NB_BOTTOM
+                             #wx.NB_LEFT
+                             #wx.NB_RIGHT
+                             )
         self.log = log
 
         win = self.makeColorPanel(wx.BLUE)
         self.log = log
 
         win = self.makeColorPanel(wx.BLUE)
@@ -116,14 +113,14 @@ def runTest(frame, nb, log):
 
 overview = """\
 <html><body>
 
 overview = """\
 <html><body>
-<h2>wxNotebook</h2>
+<h2>wx.Notebook</h2>
 <p>
 This class represents a notebook control, which manages multiple
 windows with associated tabs.
 <p>
 <p>
 This class represents a notebook control, which manages multiple
 windows with associated tabs.
 <p>
-To use the class, create a wxNotebook object and call AddPage or
+To use the class, create a wx.Notebook object and call AddPage or
 InsertPage, passing a window to be used as the page. Do not explicitly
 InsertPage, passing a window to be used as the page. Do not explicitly
-delete the window for a page that is currently managed by wxNotebook.
+delete the window for a page that is currently managed by wx.Notebook.
 
 """
 
 
 """
 
@@ -131,7 +128,7 @@ delete the window for a page that is currently managed by wxNotebook.
 if __name__ == '__main__':
     import sys,os
     import run
 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:])