(self, interval_milliseconds=1000, autostart=True, *args, **kwargs)
| 32 | self.stop = True |
| 33 | |
| 34 | def __init__(self, interval_milliseconds=1000, autostart=True, *args, **kwargs): |
| 35 | self.__interval_milliseconds = interval_milliseconds |
| 36 | self.__autostart = autostart |
| 37 | super(TimerWidget, self).__init__(self.icon, *args, **kwargs) |
| 38 | self.style.update({'position':'absolute','left':'10px','top':'10px','width':'46px','height':'46px'}) |
| 39 | self.stop = False |
| 40 | if autostart: |
| 41 | self.onelapsed() |
| 42 | |
| 43 | @gui.decorate_set_on_listener("(self, emitter)") |
| 44 | @gui.decorate_event |