commit f08c8d406a08ef8b842db467237dfac6daacb4df Author: Damian Johnson atagar@torproject.org Date: Sat Jun 4 21:47:57 2011 -0700
Message for how to close the menu
When presenting the menu showing the hotkeys for closeing in the label panel. --- src/cli/menu/menu.py | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/cli/menu/menu.py b/src/cli/menu/menu.py index 02f87ee..f83b76d 100644 --- a/src/cli/menu/menu.py +++ b/src/cli/menu/menu.py @@ -148,6 +148,9 @@ def showMenu(): popup.win.bkgd(' ', curses.A_STANDOUT | uiTools.getColor("red")) selectionHierarchy = cursor.getSelection().getHierarchy()
+ # provide a message saying how to close the menu + control.setMsg("Press m or esc to close the menu.", curses.A_BOLD, True) + # renders the menu bar, noting where the open submenu is positioned drawLeft, selectionLeft = 0, 0
@@ -175,7 +178,9 @@ def showMenu(): if not cursor.isDone(): for panelImpl in control.getDisplayPanels(): panelImpl.redraw(True) - finally: cli.popups.finalize() + finally: + control.setMsg() + cli.popups.finalize()
def _drawSubmenu(cursor, level, top, left): selectionHierarchy = cursor.getSelection().getHierarchy()
tor-commits@lists.torproject.org