##// END OF EJS Templates
Use inputhook_wx2 on osx...
Lessandro Mariano -
Show More
@@ -17,6 +17,7 b' Authors: Robin Dunn, Brian Granger, Ondrej Certik'
17 # Imports
17 # Imports
18 #-----------------------------------------------------------------------------
18 #-----------------------------------------------------------------------------
19
19
20 import sys
20 import signal
21 import signal
21 import time
22 import time
22 from timeit import default_timer as clock
23 from timeit import default_timer as clock
@@ -159,5 +160,11 b' def inputhook_wx3():'
159 pass
160 pass
160 return 0
161 return 0
161
162
162 # This is our default implementation
163 if sys.platform == 'darwin':
163 inputhook_wx = inputhook_wx3
164 # On OSX, evtloop.Pending() always returns True, regardless of there being
165 # any events pending. As such we can't use implementations 1 or 3 of the
166 # inputhook as those depend on a pending/dispatch loop.
167 inputhook_wx = inputhook_wx2
168 else:
169 # This is our default implementation
170 inputhook_wx = inputhook_wx3
General Comments 0
You need to be logged in to leave comments. Login now