Public Member Functions | |
def | __init__ |
def | cancel |
def | run |
![]() | |
def | __init__ |
def | __repr__ |
def | getName |
def | isAlive |
def | isDaemon |
def | join |
def | run |
def | setDaemon |
def | setName |
def | start |
![]() | |
def | __init__ |
def | __init__ |
Public Attributes | |
args | |
finished | |
function | |
interval | |
kwargs | |
Call a function after a specified number of seconds: t = Timer(30.0, f, args=[], kwargs={}) t.start() t.cancel() # stop the timer's action if it's still waiting
def __init__ | ( | self, | |
interval, | |||
function, | |||
args = [] , |
|||
kwargs = {} |
|||
) |
def cancel | ( | self | ) |
Stop the timer if it hasn't finished yet
def run | ( | self | ) |
args |
finished |
function |
interval |
kwargs |