]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ToggleButton.py
warning fix
[wxWidgets.git] / wxPython / demo / ToggleButton.py
index 74323f5103fc32baca88d21cf320434d25eac341..f03dd7f4b77c5564fd8a58853158c5c72f756d48 100644 (file)
@@ -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
 
 
 #----------------------------------------------------------------------