X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/08b89fa8685fcdbe3c173afbe838fb645c8da4ae..d0ee33f5c6908b4ac5e1364381f0ef00942e3936:/wxPython/demo/ToggleButton.py?ds=inline diff --git a/wxPython/demo/ToggleButton.py b/wxPython/demo/ToggleButton.py index d69b015067..f03dd7f4b7 100644 --- a/wxPython/demo/ToggleButton.py +++ b/wxPython/demo/ToggleButton.py @@ -34,10 +34,10 @@ def runTest(frame, nb, log): win = TestPanel(nb, log) return win else: - dlg = wx.MessageDialog(frame, 'wx.ToggleButton is not available on this platform.', - 'Sorry', wx.OK | wx.ICON_INFORMATION) - dlg.ShowModal() - dlg.Destroy() + from Main import MessagePanel + win = MessagePanel(nb, 'wx.ToggleButton is not available on this platform.', + 'Sorry', wx.ICON_WARNING) + return win #---------------------------------------------------------------------- @@ -57,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:])