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:
3
edgy.py
3
edgy.py
@@ -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
3
gui.py
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user