<s> """<STR_LIT>""" <EOL> import wx <EOL> class Timer ( wx . Timer ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , millisecs , callable , * args , ** kw_args ) : <EOL> """<STR_LIT>""" <EOL> wx . Timer . __init__ ( self , id = wx . NewId ( ) ) <EOL> self . callable = callable <EOL> self . args = args <EOL> self . kw_args = kw_args <EOL> self . Start ( millisecs ) <EOL> def Notify ( self ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> self . callable ( * self . args , ** self . kw_args ) <EOL> wx . GetApp ( ) . Yield ( True ) <EOL> except StopIteration : <EOL> self . Stop ( ) <EOL> except : <EOL> self . Stop ( ) <EOL> raise </s>
