Ejemplo n.º 1
0
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()
Ejemplo n.º 2
0
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()
Ejemplo n.º 3
0
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()