1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-20 04:48:00 +01:00

fixed indentation problems

This commit is contained in:
compwiz18
2007-09-04 02:43:25 +00:00
parent 7176183b47
commit 64e5c27ba2
6 changed files with 62 additions and 57 deletions

View File

@@ -19,7 +19,8 @@ reconnect when needed
##thanks to Arne Brix for programming most of this ##thanks to Arne Brix for programming most of this
##released under the GNU Public License ##released under the GNU Public License
##see http://www.gnu.org/copyleft/gpl.html for details ##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 ##to run the tray icon
######## ########
import os import os

3
gui.py
View File

@@ -339,7 +339,10 @@ class PrettyWirelessNetworkEntry(PrettyNetworkEntry):
self.show_all() self.show_all()
def setSignalStrength(self,strength, dbm_strength): def setSignalStrength(self,strength, dbm_strength):
if strength is not None:
strength = int(strength) strength = int(strength)
else:
dbm_strength = -1
if dbm_strength is not None: if dbm_strength is not None:
dbm_strength = int(dbm_strength) dbm_strength = int(dbm_strength)
else: else:

View File

@@ -175,8 +175,9 @@ class Wireless(Controller):
wiface.SetEssid(essid) wiface.SetEssid(essid)
aps = wiface.GetNetworks() aps = wiface.GetNetworks()
aps.sort(key=lambda x: x['quality']) print aps
aps.reverse() aps.sort(key=lambda x: x['strength'])
#aps.reverse()
return aps return aps