$search

src::_core_ex::CallLater Class Reference

Inheritance diagram for src::_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.


Member Function Documentation

def src::_core_ex::CallLater::__del__ (   self  ) 

Definition at line 197 of file _core_ex.py.

def src::_core_ex::CallLater::__init__ (   self,
  millis,
  callable,
  args,
  kwargs 
)

Definition at line 186 of file _core_ex.py.

def src::_core_ex::CallLater::GetInterval (   self  ) 

Definition at line 226 of file _core_ex.py.

def src::_core_ex::CallLater::GetResult (   self  ) 

Definition at line 251 of file _core_ex.py.

def src::_core_ex::CallLater::HasRun (   self  ) 

Definition at line 248 of file _core_ex.py.

def src::_core_ex::CallLater::IsRunning (   self  ) 

Definition at line 233 of file _core_ex.py.

def src::_core_ex::CallLater::Notify (   self  ) 
The timer has expired so call the callable.

Definition at line 254 of file _core_ex.py.

def src::_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 src::_core_ex::CallLater::Start (   self,
  millis = None,
  args,
  kwargs 
)
(Re)start the timer

Definition at line 201 of file _core_ex.py.

def src::_core_ex::CallLater::Stop (   self  ) 
Stop and destroy the timer.

Definition at line 217 of file _core_ex.py.


Member Data Documentation

Definition at line 244 of file _core_ex.py.

Definition at line 188 of file _core_ex.py.

Definition at line 192 of file _core_ex.py.

Definition at line 245 of file _core_ex.py.

Definition at line 187 of file _core_ex.py.

Definition at line 214 of file _core_ex.py.

Definition at line 193 of file _core_ex.py.

Definition at line 190 of file _core_ex.py.

Definition at line 191 of file _core_ex.py.

Definition at line 194 of file _core_ex.py.


Property Documentation

src::_core_ex::CallLater::Interval = property(GetInterval) [static]

Definition at line 267 of file _core_ex.py.

src::_core_ex::CallLater::Result = property(GetResult) [static]

Definition at line 268 of file _core_ex.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


wxPython_swig_interface
Author(s): Many
autogenerated on Sat Mar 2 13:30:49 2013