def __init__(self, countdown=1000): Timer.__init__(self) Label.__init__(self) self.countdown = countdown self.task_id = None self.wait_cnt = 0 self.remote_py = \ EchoServicePython(server="flask", flask_view_type="celery")
def __init__(self, max_tries = 10, interval = 500): Timer.__init__(self) self.interval = interval self.max_tries = max_tries self.tries = 0 self.func = func self.params = params self.scheduleRepeating(self.interval)
def __init__(self, countdown): # It's a Timer, no it's a Button, WAIT! It's BOTH!! Timer.__init__(self) Button.__init__(self) # save the countdown value self.countdown_save = countdown # this instance handles the clicks self.addClickListener(self) # the box the popups go into self.box = SimplePanel(StyleName='popupbox') # kickstart self.reset()
def __init__(self, context): Timer.__init__(self) self.max_tries = 10 self.tries = 0 self.context = context