X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95bfd958bda8955ac81277c78e5627c926154f39..69d818954b5e6e7b4b4e5093dd26dbe2d5f8546c:/wxPython/demo/ToggleButton.py diff --git a/wxPython/demo/ToggleButton.py b/wxPython/demo/ToggleButton.py index 43a7d0a370..74323f5103 100644 --- a/wxPython/demo/ToggleButton.py +++ b/wxPython/demo/ToggleButton.py @@ -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:])