def main(): ROOT_PROPS = ["RESOURCE_MANAGER", "_NET_WORKAREA"] xrpw = XRootPropWatcher(ROOT_PROPS) gobject.timeout_add(1000, xrpw.notify_all) try: gtk.main() finally: xrpw.cleanup()
def main(): ROOT_PROPS = ["RESOURCE_MANAGER", "_NET_WORKAREA"] root = gtk.gdk.get_default_root_window() xrpw = XRootPropWatcher(ROOT_PROPS, root) gobject.timeout_add(1000, xrpw.notify_all) try: gtk.main() finally: xrpw.cleanup()
def main(): logging.basicConfig(format="%(asctime)s %(message)s") logging.root.setLevel(logging.INFO) ROOT_PROPS = ["RESOURCE_MANAGER", "_NET_WORKAREA"] xrpw = XRootPropWatcher(ROOT_PROPS) gobject.timeout_add(1000, xrpw.notify_all) try: gtk.main() finally: xrpw.cleanup()