X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95bfd958bda8955ac81277c78e5627c926154f39..52f52ebc4e0be6a9899d328b08db9eb14629d219:/wxPython/demo/ToggleButton.py?ds=sidebyside diff --git a/wxPython/demo/ToggleButton.py b/wxPython/demo/ToggleButton.py index 43a7d0a370..d69b015067 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 #----------------------------------------------------------------------