Show More
@@ -98,10 +98,10 b' def create_inputhook_qt4(mgr, app=None):' | |||||
98 | mgr.clear_inputhook() |
|
98 | mgr.clear_inputhook() | |
99 | except: # NO exceptions are allowed to escape from a ctypes callback |
|
99 | except: # NO exceptions are allowed to escape from a ctypes callback | |
100 | ignore_CTRL_C() |
|
100 | ignore_CTRL_C() | |
101 | mgr.clear_inputhook() |
|
|||
102 | from traceback import print_exc |
|
101 | from traceback import print_exc | |
103 | print_exc() |
|
102 | print_exc() | |
104 | print("Got exception from inputhook_qt4, unregistering.") |
|
103 | print("Got exception from inputhook_qt4, unregistering.") | |
|
104 | mgr.clear_inputhook() | |||
105 | finally: |
|
105 | finally: | |
106 | allow_CTRL_C() |
|
106 | allow_CTRL_C() | |
107 | return 0 |
|
107 | return 0 |
General Comments 0
You need to be logged in to leave comments.
Login now