mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 21:08:06 +01:00
More htoppish ui changes
curses/prefs_curses.py: changed save_results to save_settings
curses/curses_misc.py:
M^[ and M^] shift the tabs left and right respectively. The curses module
has trouble picking up M^left and M^right
curses/netentry_curses.py:
Removed the buttons and button-related code from the interface.
Removed the overlay code.
Adapted the code for direct insertion into the wicd-curses interface
curses/wicd-curses.py:
Teaked the wireless header.
Added support for sticking the network config dialog into the interface, and
changing the current OptCols when it is activated.
Added new OptCols for other large dialogs
This commit is contained in:
@@ -206,9 +206,10 @@ class TabColumns(urwid.WidgetWrap):
|
||||
|
||||
def keypress(self,size,key):
|
||||
self._w.keypress(size,key)
|
||||
if key == "meta left" or key == "meta right":
|
||||
if key == "meta [" or key == "meta ]":
|
||||
self._w.get_body().set_focus(0)
|
||||
self.keypress(size,key[5:])
|
||||
newK = 'left' if key[-1] == '[' else 'right'
|
||||
self.keypress(size,newK)
|
||||
self._w.get_body().set_focus(1)
|
||||
else:
|
||||
wid = self.pile.get_focus().get_body()
|
||||
|
||||
Reference in New Issue
Block a user