]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_extras.py
reSWIGged
[wxWidgets.git] / wxPython / src / _extras.py
index 7fdae3e4d2d28ad8691988345982e5d0e05b270c..0c6ab0c90f698814827fe81f275d7cbcec1c01f1 100644 (file)
@@ -954,8 +954,11 @@ of your Mac."""
         # KeyboardInterrupt???)  but will later segfault on exit.  By
         # setting the default handler then the app will exit, as
         # expected (depending on platform.)
         # KeyboardInterrupt???)  but will later segfault on exit.  By
         # setting the default handler then the app will exit, as
         # expected (depending on platform.)
-        import signal
-        signal.signal(signal.SIGINT, signal.SIG_DFL)
+        try:
+            import signal
+            signal.signal(signal.SIGINT, signal.SIG_DFL)
+        except:
+            pass
 
         # this initializes wxWindows and then calls our OnInit
         _wxStart(self.OnInit)
 
         # this initializes wxWindows and then calls our OnInit
         _wxStart(self.OnInit)