mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 04:48:00 +01:00
Made calls to Autoconnect outside the daemon asynchronous.
Removed some unnecessary print statements. Added checks to the daemon and configscript.py to make sure the user opening it is root. Fixed formatting problems in class definitions in wicd.py
This commit is contained in:
6
wicd.py
6
wicd.py
@@ -111,7 +111,7 @@ language['killswitch_enabled'] = _('Wireless Kill Switch Enabled')
|
||||
language['connecting'] = _('Connecting')
|
||||
language['wired'] = _('Wired Network')
|
||||
|
||||
class TrayIcon():
|
||||
class TrayIcon:
|
||||
""" Base Tray Icon class.
|
||||
|
||||
Base Class for implementing a tray icon to display network status.
|
||||
@@ -125,7 +125,7 @@ class TrayIcon():
|
||||
self.icon_info = self.TrayConnectionInfo(self.tr, use_tray)
|
||||
|
||||
|
||||
class TrayConnectionInfo():
|
||||
class TrayConnectionInfo:
|
||||
""" Class for updating the tray icon status. """
|
||||
def __init__(self, tr, use_tray=True):
|
||||
""" Initialize variables needed for the icon status methods. """
|
||||
@@ -233,7 +233,7 @@ class TrayIcon():
|
||||
self.tr.set_from_file(img_file)
|
||||
|
||||
|
||||
class TrayIconGUI():
|
||||
class TrayIconGUI:
|
||||
""" Base Tray Icon UI class.
|
||||
|
||||
Implements methods and variables used by both egg/StatusIcon
|
||||
|
||||
Reference in New Issue
Block a user