From b8efa6bd4a28ad2303b764dd7391e58ab4fda8c8 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 26 Sep 2003 20:16:57 +0000 Subject: [PATCH] reSWIGged git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/mac/wx.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wxPython/src/mac/wx.py b/wxPython/src/mac/wx.py index 33526ac813..9ccfdf704b 100644 --- a/wxPython/src/mac/wx.py +++ b/wxPython/src/mac/wx.py @@ -1941,8 +1941,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)