MCPcopy Create free account
hub / github.com/ipython/ipython / EventLoopRunner

Class EventLoopRunner

IPython/lib/inputhookwx.py:66–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 self.func()
65
66class EventLoopRunner(object):
67
68 def Run(self, time):
69 self.evtloop = wx.EventLoop()
70 self.timer = EventLoopTimer(self.check_stdin)
71 self.timer.Start(time)
72 self.evtloop.Run()
73
74 def check_stdin(self):
75 if stdin_ready():
76 self.timer.Stop()
77 self.evtloop.Exit()
78
79def inputhook_wx2():
80 """Run the wx event loop, polling for stdin.

Callers 1

inputhook_wx2Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected