Public Member Functions | Public Attributes | Static Public Attributes | Properties
wxpython_swig_interface._core_ex.CallLater Class Reference
Inheritance diagram for wxpython_swig_interface._core_ex.CallLater:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __del__
def __init__
def GetInterval
def GetResult
def HasRun
def IsRunning
def Notify
def SetArgs
def Start
def Stop

Public Attributes

 args
 callable
 hasRun
 kwargs
 millis
 result
 runCount
 running
 timer

Static Public Attributes

 Restart = Start

Properties

 Interval = property(GetInterval)
 Result = property(GetResult)

Detailed Description

A convenience class for `wx.Timer`, that calls the given callable
object once after the given amount of milliseconds, passing any
positional or keyword args.  The return value of the callable is
availbale after it has been run with the `GetResult` method.

If you don't need to get the return value or restart the timer
then there is no need to hold a reference to this object.  It will
hold a reference to itself while the timer is running (the timer
has a reference to self.Notify) but the cycle will be broken when
the timer completes, automatically cleaning up the wx.CallLater
object.

:see: `wx.CallAfter`

Definition at line 170 of file _core_ex.py.


Constructor & Destructor Documentation

def wxpython_swig_interface._core_ex.CallLater.__init__ (   self,
  millis,
  callable,
  args,
  kwargs 
)

Definition at line 186 of file _core_ex.py.

Definition at line 197 of file _core_ex.py.


Member Function Documentation

Definition at line 226 of file _core_ex.py.

Definition at line 251 of file _core_ex.py.

Definition at line 248 of file _core_ex.py.

Definition at line 233 of file _core_ex.py.

The timer has expired so call the callable.

Definition at line 254 of file _core_ex.py.

def wxpython_swig_interface._core_ex.CallLater.SetArgs (   self,
  args,
  kwargs 
)
(Re)set the args passed to the callable object.  This is
useful in conjunction with Restart if you want to schedule a
new call to the same callable object but with different
parameters.

Definition at line 237 of file _core_ex.py.

def wxpython_swig_interface._core_ex.CallLater.Start (   self,
  millis = None,
  args,
  kwargs 
)
(Re)start the timer

Definition at line 201 of file _core_ex.py.

Stop and destroy the timer.

Definition at line 217 of file _core_ex.py.


Member Data Documentation

Definition at line 242 of file _core_ex.py.

Definition at line 186 of file _core_ex.py.

Definition at line 186 of file _core_ex.py.

Definition at line 242 of file _core_ex.py.

Definition at line 186 of file _core_ex.py.

Definition at line 214 of file _core_ex.py.

Definition at line 186 of file _core_ex.py.

Definition at line 186 of file _core_ex.py.

Definition at line 186 of file _core_ex.py.

Definition at line 186 of file _core_ex.py.


Property Documentation

Definition at line 267 of file _core_ex.py.

Definition at line 268 of file _core_ex.py.


The documentation for this class was generated from the following file:


wxpython_swig_interface
Author(s):
autogenerated on Mon Oct 6 2014 07:25:55