コード例 #1
0
ファイル: wicd-client.py プロジェクト: cbxbiker61/wicd
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
コード例 #2
0
ファイル: wicd-client.py プロジェクト: mcagl/wicd
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
コード例 #3
0
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
コード例 #4
0
ファイル: wicd-client.py プロジェクト: zeph/wicd
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