f7/f7/timer.py
aozhiwei 07f321e383 1
2020-01-10 19:16:01 +08:00

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()