29 lines
506 B
Python
29 lines
506 B
Python
# -*- coding: utf-8 -*-
|
|
#!/usr/bin/python
|
|
|
|
import f7
|
|
|
|
class _Timer:
|
|
_instance = None
|
|
|
|
@classmethod
|
|
def instance(cls):
|
|
if not cls._instance:
|
|
cls._instance = _Timer()
|
|
return cls._instance
|
|
|
|
def __init__(self):
|
|
pass
|
|
|
|
def unInit(self):
|
|
pass
|
|
|
|
def callAt(self, when, callback):
|
|
f7.app.callAt(when, callback)
|
|
|
|
def callLater(self, when, callback):
|
|
f7.app.callLater(when, callback)
|
|
|
|
def instance():
|
|
return _Timer.instance()
|