mirror of
https://github.com/gryf/wicd.git
synced 2025-12-19 20:38:00 +01:00
fixed indentation problems
This commit is contained in:
3
edgy.py
3
edgy.py
@@ -19,7 +19,8 @@ reconnect when needed
|
||||
##thanks to Arne Brix for programming most of this
|
||||
##released under the GNU Public License
|
||||
##see http://www.gnu.org/copyleft/gpl.html for details
|
||||
##this will only work in Edgy and above because of gtk requirements
|
||||
##this will only work if the GTK version is above 2.10.0
|
||||
##as it is in Ubuntu Edgy
|
||||
##to run the tray icon
|
||||
########
|
||||
import os
|
||||
|
||||
3
gui.py
3
gui.py
@@ -339,7 +339,10 @@ class PrettyWirelessNetworkEntry(PrettyNetworkEntry):
|
||||
self.show_all()
|
||||
|
||||
def setSignalStrength(self,strength, dbm_strength):
|
||||
if strength is not None:
|
||||
strength = int(strength)
|
||||
else:
|
||||
dbm_strength = -1
|
||||
if dbm_strength is not None:
|
||||
dbm_strength = int(dbm_strength)
|
||||
else:
|
||||
|
||||
@@ -175,8 +175,9 @@ class Wireless(Controller):
|
||||
wiface.SetEssid(essid)
|
||||
|
||||
aps = wiface.GetNetworks()
|
||||
aps.sort(key=lambda x: x['quality'])
|
||||
aps.reverse()
|
||||
print aps
|
||||
aps.sort(key=lambda x: x['strength'])
|
||||
#aps.reverse()
|
||||
return aps
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user