Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyMonitor(xbmc.Monitor):
- def __init__(self, *args, **kwargs):
- print 'monitor: init'
- xbmc.Monitor.__init__(self)
- self.action = kwargs['action']
- def onSettingsChanged(self):
- print 'monitor: onSettingsChanged: enter'
- self.action()
- def _get_settings():
- print 'monitor: onSettingsChanged: exit'
- Monitor = MyMonitor(action = _get_settings)
- if __name__ == "__main__":
- while (not xbmc.abortRequested):
- xbmc.sleep(1000)
- print 'monitor: exit'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement