def handle_no_dbus(): """ Called when dbus announces its shutting down. """ global DBUS_AVAIL, lost_dbus_id DBUS_AVAIL = False gui.handle_no_dbus(from_tray=True) print "Wicd daemon is shutting down!" lost_dbus_id = misc.timeout_add(5, lambda:error(None, language['lost_dbus'], block=False)) return False
def handle_no_dbus(): """ Called when dbus announces its shutting down. """ global DBUS_AVAIL, lost_dbus_id DBUS_AVAIL = False gui.handle_no_dbus(from_tray=True) print "Wicd daemon is shutting down!" lost_dbus_id = misc.timeout_add(5, lambda:error(None, _('The wicd daemon has shut down. The UI will not function properly until it is restarted.'), block=False)) return False
def handle_no_dbus(): """ Called when dbus announces its shutting down. """ global DBUS_AVAIL, lost_dbus_id DBUS_AVAIL = False gui.handle_no_dbus(from_tray=True) print "Wicd daemon is shutting down!" lost_dbus_id = misc.timeout_add( 5, lambda: error(None, language['lost_dbus'], block=False)) return False
def handle_no_dbus(): """ Called when dbus announces its shutting down. """ global DBUS_AVAIL, lost_dbus_id DBUS_AVAIL = False gui.handle_no_dbus(from_tray=True) print("Wicd daemon is shutting down!") lost_dbus_id = misc.timeout_add( 5, lambda: error( None, _('The wicd daemon has shut down. The UI will not function ' 'properly until it is restarted.'), block=False)) return False