1
0
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:
imdano
2008-03-13 14:10:49 +00:00
parent a7c22b9724
commit 04b67e9b2e
7 changed files with 44 additions and 28 deletions

View File

@@ -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