X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/36a73f1d03da134576745556f464f54321b3aa40..b7d681eb049c69e2bdd1199105cf34067c8dbb78:/wxPython/src/_extras.py diff --git a/wxPython/src/_extras.py b/wxPython/src/_extras.py index 7fdae3e4d2..0c6ab0c90f 100644 --- a/wxPython/src/_extras.py +++ b/wxPython/src/_extras.py @@ -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.) - 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)