Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 0.28 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. if __name__ == '__main__':
  2.   import gobject
  3.  
  4.   DEBUG = True
  5.  
  6.   class MyViewMonitor(HomeViewMonitor):
  7.     def on_changed(self, home_id):
  8.       debug('INFO: MyViewMonitor: on_changed: %d' % home_id)
  9.  
  10.   monitor = MyViewMonitor()
  11.   main    = gobject.MainLoop()
  12.   main.run()