##// END OF EJS Templates
Fixing minor bug in ipkernel.py.
Brian Granger -
Show More
@@ -371,6 +371,7 b' class WxKernel(Kernel):'
371 371 import wx
372 372 from IPython.lib.guisupport import start_event_loop_wx
373 373 doi = self.do_one_iteration
374 _poll_interval = self._poll_interval
374 375
375 376 # We have to put the wx.Timer in a wx.Frame for it to fire properly.
376 377 # We make the Frame hidden when we create it in the main app below.
@@ -379,7 +380,7 b' class WxKernel(Kernel):'
379 380 wx.Frame.__init__(self, None, -1)
380 381 self.timer = wx.Timer(self)
381 382 # Units for the timer are in milliseconds
382 self.timer.Start(1000*self._poll_interval)
383 self.timer.Start(1000*_poll_interval)
383 384 self.Bind(wx.EVT_TIMER, self.on_timer)
384 385 self.func = func
385 386 def on_timer(self, event):
General Comments 0
You need to be logged in to leave comments. Login now