##// END OF EJS Templates
Backport PR #12375: BF: wx inputhook
Matthias Bussonnier -
Show More
@@ -177,11 +177,13 b' def inputhook_wxphoenix(context):'
177
177
178 # Use a wx.Timer to periodically check whether input is ready - as soon as
178 # Use a wx.Timer to periodically check whether input is ready - as soon as
179 # it is, we exit the main loop
179 # it is, we exit the main loop
180 timer = wx.Timer()
181
180 def poll(ev):
182 def poll(ev):
181 if context.input_is_ready():
183 if context.input_is_ready():
184 timer.Stop()
182 app.ExitMainLoop()
185 app.ExitMainLoop()
183
186
184 timer = wx.Timer()
185 timer.Start(poll_interval)
187 timer.Start(poll_interval)
186 timer.Bind(wx.EVT_TIMER, poll)
188 timer.Bind(wx.EVT_TIMER, poll)
187
189
General Comments 0
You need to be logged in to leave comments. Login now