mirror of
https://github.com/gryf/wicd.git
synced 2026-02-17 15:35:44 +01:00
curses/wicd-curses.py:
Added some stuff to the help dialog. '?' and 'h' now raise the help dialog 'q' now quits the client. Keymaps are now colored white in the help dialog.
This commit is contained in:
@@ -242,7 +242,7 @@ def help_dialog(body):
|
|||||||
theText = [
|
theText = [
|
||||||
"For more detailed help, consult the wicd-curses(8) man page.\n",
|
"For more detailed help, consult the wicd-curses(8) man page.\n",
|
||||||
"\n", "All controls are case sensitive\n",
|
"\n", "All controls are case sensitive\n",
|
||||||
('bold','H')," Display this help dialog\n",
|
('bold','H')," or ",('bold','h'),' or ',('bold','?')," Display this help dialog\n",
|
||||||
('bold','enter')," Connect to selected network\n",
|
('bold','enter')," Connect to selected network\n",
|
||||||
('bold','D')," Disconnect from all networks\n",
|
('bold','D')," Disconnect from all networks\n",
|
||||||
('bold','ESC')," Stop a network connection in progress\n",
|
('bold','ESC')," Stop a network connection in progress\n",
|
||||||
@@ -250,9 +250,10 @@ def help_dialog(body):
|
|||||||
('bold','P')," Prefrences dialog\n",
|
('bold','P')," Prefrences dialog\n",
|
||||||
('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"
|
||||||
]
|
]
|
||||||
help = TextDialog(theText,15,62,header=('header',"Wicd-Curses Help"))
|
help = TextDialog(theText,17,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):
|
||||||
@@ -768,7 +769,7 @@ class appGUI():
|
|||||||
keys = ui.get_input()
|
keys = ui.get_input()
|
||||||
# Should make a keyhandler method, but this will do until I get around to
|
# Should make a keyhandler method, but this will do until I get around to
|
||||||
# that stage
|
# that stage
|
||||||
if "f8" in keys or 'Q' in keys:
|
if "f8" in keys or 'Q' in keys or 'q' in keys:
|
||||||
loop.quit()
|
loop.quit()
|
||||||
return False
|
return False
|
||||||
if "f5" in keys or 'R' in keys:
|
if "f5" in keys or 'R' in keys:
|
||||||
@@ -818,7 +819,7 @@ class appGUI():
|
|||||||
#self.netentry.run(ui,self.size,self.frame)
|
#self.netentry.run(ui,self.size,self.frame)
|
||||||
if "I" in keys:
|
if "I" in keys:
|
||||||
self.raise_hidden_network_dialog()
|
self.raise_hidden_network_dialog()
|
||||||
if "H" in keys:
|
if "H" in keys or 'h' in keys or '?' in keys:
|
||||||
help_dialog(self.frame)
|
help_dialog(self.frame)
|
||||||
if "S" in keys:
|
if "S" in keys:
|
||||||
focus = self.thePile.get_focus()
|
focus = self.thePile.get_focus()
|
||||||
@@ -904,7 +905,7 @@ def main():
|
|||||||
('green','dark green','default'),
|
('green','dark green','default'),
|
||||||
('blue','dark blue','default'),
|
('blue','dark blue','default'),
|
||||||
('red','dark red','default'),
|
('red','dark red','default'),
|
||||||
('bold','default','default','bold')])
|
('bold','white','default','bold')])
|
||||||
# This is a wrapper around a function that calls another a function that is a
|
# This is a wrapper around a function that calls another a function that is a
|
||||||
# wrapper around a infinite loop. Fun.
|
# wrapper around a infinite loop. Fun.
|
||||||
ui.run_wrapper(run)
|
ui.run_wrapper(run)
|
||||||
|
|||||||
Reference in New Issue
Block a user