Advertisement
Guest User

Untitled

a guest
Jul 21st, 2012
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. class MyMonitor(xbmc.Monitor):
  2. def __init__(self, *args, **kwargs):
  3. print 'monitor: init'
  4. xbmc.Monitor.__init__(self)
  5. self.action = kwargs['action']
  6.  
  7. def onSettingsChanged(self):
  8. print 'monitor: onSettingsChanged: enter'
  9. self.action()
  10.  
  11. def _get_settings():
  12. print 'monitor: onSettingsChanged: exit'
  13.  
  14. Monitor = MyMonitor(action = _get_settings)
  15.  
  16. if __name__ == "__main__":
  17. while (not xbmc.abortRequested):
  18. xbmc.sleep(1000)
  19. print 'monitor: exit'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement