John Salerno wrote in news:[EMAIL PROTECTED] in comp.lang.python:
> Quick question about the code below: I understand why the progress bar > fills up at a steady pace when the mouse is idle over the frame; but > why, when you move the mouse, does the progress bar speed up? Shouldn't > it stop completely until the mouse is idle again? wxWidgets is sending the idle event after it has processed all other events, but it just sends it once not in a loop. see the documentation (help) for wxIdleEvent::RequestMore. > > def OnIdle(self, event): event.RequestMore(True) > self.count += 1 > if self.count >= 50: > self.count = 0 Rob. -- http://www.victim-prime.dsl.pipex.com/ -- http://mail.python.org/mailman/listinfo/python-list