mirror of
https://github.com/gryf/wicd.git
synced 2025-12-21 13:28:08 +01:00
curses/wicd-curses.py:
Added a mention of the About dialog in the help curses/prefs_curses.py: Fixed mouse support in/man=wicd-curses.8.in Added a mention of the about dialog
This commit is contained in:
@@ -425,12 +425,12 @@ class PrefsDialog(urwid.WidgetWrap):
|
|||||||
return False
|
return False
|
||||||
for k in keys:
|
for k in keys:
|
||||||
#Send key to underlying widget:
|
#Send key to underlying widget:
|
||||||
|
overlay.keypress(dim, k)
|
||||||
if urwid.is_mouse_event(k):
|
if urwid.is_mouse_event(k):
|
||||||
event, button, col, row = k
|
event, button, col, row = k
|
||||||
overlay.mouse_event( dim,
|
overlay.mouse_event( dim,
|
||||||
event, button, col, row,
|
event, button, col, row,
|
||||||
focus=True)
|
focus=True)
|
||||||
overlay.keypress(dim, k)
|
|
||||||
# Check if buttons are pressed.
|
# Check if buttons are pressed.
|
||||||
if self.CANCEL_PRESSED:
|
if self.CANCEL_PRESSED:
|
||||||
return False
|
return False
|
||||||
|
|||||||
@@ -93,16 +93,14 @@ class wrap_exceptions:
|
|||||||
#raise
|
#raise
|
||||||
except DBusException:
|
except DBusException:
|
||||||
gobject.source_remove(redraw_tag)
|
gobject.source_remove(redraw_tag)
|
||||||
# Quit the loop
|
|
||||||
loop.quit()
|
loop.quit()
|
||||||
# Zap the screen
|
|
||||||
ui.stop()
|
ui.stop()
|
||||||
print "\n"+language['dbus_fail']
|
print "\n"+language['dbus_fail']
|
||||||
raise
|
raise
|
||||||
except :
|
except :
|
||||||
# If the UI isn't inactive (redraw_tag wouldn't normally be
|
# If the UI isn't inactive (redraw_tag wouldn't normally be
|
||||||
# set), then don't try to stop it, just gracefully die.
|
# set), then don't try to stop it, just gracefully die.
|
||||||
if redraw_tag != -1:
|
if redraw_tag != None:
|
||||||
# Remove update_ui from the event queue
|
# Remove update_ui from the event queue
|
||||||
gobject.source_remove(redraw_tag)
|
gobject.source_remove(redraw_tag)
|
||||||
# Quit the loop
|
# Quit the loop
|
||||||
@@ -166,8 +164,8 @@ def check_for_wireless(iwconfig, wireless_ip, set_status):
|
|||||||
# working...
|
# working...
|
||||||
# Also defunct.
|
# Also defunct.
|
||||||
# Current list header is STR,ESSID,ENCRYPT,BSSID,TYPE,CHANNEL
|
# Current list header is STR,ESSID,ENCRYPT,BSSID,TYPE,CHANNEL
|
||||||
def gen_list_header():
|
#def gen_list_header():
|
||||||
return '%3s %4s %s %19s %s ' % ('NUM','STR','BSSID','CHANNEL','ESSID')
|
# return '%3s %4s %s %19s %s ' % ('NUM','STR','BSSID','CHANNEL','ESSID')
|
||||||
|
|
||||||
# Generate the list of networks.
|
# Generate the list of networks.
|
||||||
# Mostly borrowed/stolen from wpa_cli, since I had no clue what all of those
|
# Mostly borrowed/stolen from wpa_cli, since I had no clue what all of those
|
||||||
@@ -245,9 +243,10 @@ def help_dialog(body):
|
|||||||
('bold','I')," Scan for hidden networks\n",
|
('bold','I')," Scan for hidden networks\n",
|
||||||
('bold','S')," Select scripts\n",
|
('bold','S')," Select scripts\n",
|
||||||
('bold','O')," Set up Ad-hoc network\n",
|
('bold','O')," Set up Ad-hoc network\n",
|
||||||
('bold','C')," Configure Selected Network\n"
|
('bold','C')," Configure Selected Network\n",
|
||||||
|
('bold','A')," Display 'about' dialog\n"
|
||||||
]
|
]
|
||||||
help = TextDialog(theText,17,62,header=('header',"Wicd-Curses Help"))
|
help = TextDialog(theText,18,62,header=('header',"Wicd-Curses Help"))
|
||||||
help.run(ui,body)
|
help.run(ui,body)
|
||||||
|
|
||||||
def run_configscript(parent,netname,nettype):
|
def run_configscript(parent,netname,nettype):
|
||||||
@@ -545,7 +544,6 @@ class appGUI():
|
|||||||
self.prev_state = False
|
self.prev_state = False
|
||||||
self.connecting = False
|
self.connecting = False
|
||||||
self.screen_locked = False
|
self.screen_locked = False
|
||||||
#self.always_show_wired = daemon.GetAlwaysShowWiredInterface()
|
|
||||||
|
|
||||||
self.pref = None
|
self.pref = None
|
||||||
|
|
||||||
@@ -908,7 +906,7 @@ def run():
|
|||||||
global loop,redraw_tag
|
global loop,redraw_tag
|
||||||
|
|
||||||
ui.set_mouse_tracking()
|
ui.set_mouse_tracking()
|
||||||
redraw_tag = -1
|
redraw_tag = None
|
||||||
app = appGUI()
|
app = appGUI()
|
||||||
|
|
||||||
# Connect signals and whatnot to UI screen control functions
|
# Connect signals and whatnot to UI screen control functions
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ Bring up hidden network scanning dialog
|
|||||||
.TP
|
.TP
|
||||||
.BR "H " or " h " or " ?"
|
.BR "H " or " h " or " ?"
|
||||||
Bring up a rather simplistic help dialog. Of course, it mentions this man page first. :-)
|
Bring up a rather simplistic help dialog. Of course, it mentions this man page first. :-)
|
||||||
|
.TP
|
||||||
|
.BR A
|
||||||
|
Raise the "About wicd-curses" dialog
|
||||||
.\".PP
|
.\".PP
|
||||||
.\"The following is a work in progress and might not be fully functional as of yet.
|
.\"The following is a work in progress and might not be fully functional as of yet.
|
||||||
.TP
|
.TP
|
||||||
|
|||||||
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 = 'r271'
|
CURSES_REVNO = 'r272'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if not os.path.exists('vcsinfo.py'):
|
if not os.path.exists('vcsinfo.py'):
|
||||||
|
|||||||
Reference in New Issue
Block a user