2009-06-17, 23:21
I'm trying to use the built-in AlarmClock-function found at http://www.xbmc.org/wiki/?title=List_of_..._Functions.
I do like this:
But get the following error:
What am I doing wrong?
Thanks in advance!
I do like this:
Code:
import xbmc, xbmcgui
class MyWindow(xbmcgui.Window):
def __init__(self):
self.heartbeat()
def heartbeat(self):
xbmc.AlarmClock("aname",self.heartbeat,"10")
But get the following error:
Code:
23:18:40 T:980 M:893874176 NOTICE: xbmc.AlarmClock("aname",heartbeat,"10")
23:18:40 T:980 M:893874176 NOTICE: AttributeError
23:18:40 T:980 M:893874176 NOTICE: :
23:18:40 T:980 M:893874176 NOTICE: 'module' object has no attribute 'AlarmClock'
What am I doing wrong?
Thanks in advance!