timer Package

timer Package

do_later Module

Provides a simple function for scheduling some code to run at some time in the future (assumes application is wxPython based).

class pyface.ui.wx.timer.do_later.DoLaterTimer(interval, callable, args, kw_args)

Bases: wx._misc.Timer

Notify()
active_timers = []

timer Module

A wx.Timer subclass that invokes a specified callback periodically.

class pyface.ui.wx.timer.timer.Timer(millisecs, callable, *args, **kw_args)

Bases: wx._misc.Timer

Simple subclass of wx.Timer that allows the user to have a function called periodically.

Any exceptions raised in the callable are caught. If StopIteration is raised the timer stops. If other exceptions are encountered the timer is stopped and the exception re-raised.

Notify()

Overridden to call the given callable. Exceptions raised in the callable are caught. If StopIteration is raised the timer stops. If other exceptions are encountered the timer is stopped and the exception re-raised.

Table Of Contents

Previous topic

grid Package

Next topic

wizard Package

This Page