mirror of
https://github.com/gryf/wicd.git
synced 2025-12-22 05:48:03 +01:00
curses/wicd-curses.py:
Made the tagged wireless network actually show the network we're connected to,
or not, as the case may be.
Added ' -- ' to the upper statusbar
Also, in the last commit, configscript_curses should be netentry_curses
This commit is contained in:
@@ -204,7 +204,7 @@ def gen_network_list():
|
|||||||
wlessL = []
|
wlessL = []
|
||||||
# This one makes a list of NetLabels
|
# This one makes a list of NetLabels
|
||||||
for network_id in range(0, wireless.GetNumberOfNetworks()):
|
for network_id in range(0, wireless.GetNumberOfNetworks()):
|
||||||
is_active = wireless.GetCurrentSignalStrength("") != 0 and wireless.GetCurrentNetworkID(wireless.GetIwconfig())==network_id
|
is_active = wireless.GetCurrentSignalStrength("") != 0 and wireless.GetCurrentNetworkID(wireless.GetIwconfig())==network_id and wireless.GetWirelessIP('') != None
|
||||||
|
|
||||||
label = NetLabel(network_id,is_active)
|
label = NetLabel(network_id,is_active)
|
||||||
wlessL.append(label)
|
wlessL.append(label)
|
||||||
@@ -730,7 +730,7 @@ class appGUI():
|
|||||||
# theText += self.special
|
# theText += self.special
|
||||||
if self.connecting:
|
if self.connecting:
|
||||||
theText += "-- "+language['connecting']+' -- '+language["esc_to_cancel"]
|
theText += "-- "+language['connecting']+' -- '+language["esc_to_cancel"]
|
||||||
quit_note = language["press_to_quit"]
|
quit_note = ' -- '+language["press_to_quit"]
|
||||||
self.footer1 = urwid.Text(str(self.incr) + theText+quit_note,wrap='clip')
|
self.footer1 = urwid.Text(str(self.incr) + theText+quit_note,wrap='clip')
|
||||||
self.incr+=1
|
self.incr+=1
|
||||||
return True
|
return True
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -27,7 +27,7 @@ import subprocess
|
|||||||
# VERSIONNUMBER
|
# VERSIONNUMBER
|
||||||
VERSION_NUM = '1.6.0'
|
VERSION_NUM = '1.6.0'
|
||||||
REVISION_NUM = 'unknown'
|
REVISION_NUM = 'unknown'
|
||||||
CURSES_REVNO = 'r266'
|
CURSES_REVNO = 'r269'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if not os.path.exists('vcsinfo.py'):
|
if not os.path.exists('vcsinfo.py'):
|
||||||
|
|||||||
Reference in New Issue
Block a user