mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 04:48:00 +01:00
Refactored several files (especially gui.py) to be more in line with python conventions and make the code easier to understand.
Added a bunch of docstrings. Fixed an invalid function call in wnettools.py.
This commit is contained in:
@@ -41,13 +41,11 @@ class WiredConnectThread() -- Connection thread for wired
|
|||||||
#
|
#
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import sys
|
|
||||||
import threading
|
import threading
|
||||||
import thread
|
import thread
|
||||||
import misc
|
import misc
|
||||||
import wnettools
|
import wnettools
|
||||||
import wpath
|
import wpath
|
||||||
import os
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
@@ -114,6 +112,7 @@ class ConnectThread(threading.Thread):
|
|||||||
self.global_dns_2 = gdns2
|
self.global_dns_2 = gdns2
|
||||||
self.global_dns_3 = gdns3
|
self.global_dns_3 = gdns3
|
||||||
|
|
||||||
|
self.connecting_message = None
|
||||||
self.debug = debug
|
self.debug = debug
|
||||||
|
|
||||||
self.SetStatus('interface_down')
|
self.SetStatus('interface_down')
|
||||||
|
|||||||
Reference in New Issue
Block a user