]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ToggleButton.py
Added some info panels that show size and colour attributes about the widget
[wxWidgets.git] / wxPython / demo / ToggleButton.py
index 43a7d0a370394cf9dc2a4d866665f03f50084616..74323f5103fc32baca88d21cf320434d25eac341 100644 (file)
@@ -2,10 +2,7 @@
 import  wx
 
 haveToggleBtn = 1
-
-try:
-    wx.ToggleButton
-except NameError:
+if wx.Platform == "__WXX11__":
     haveToggleBtn = 0
 
 #----------------------------------------------------------------------
@@ -60,4 +57,4 @@ This class is only available under wxMSW and wxGTK currently.
 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:])