On Wed, Aug 20, 2003 at 03:01:06AM -0400, Caleb Land wrote: > I'm writing a program that is used solely from the keyboard. My program > has a lot of screens, so I need an easy way for the user to access them. > > The way that it's implemented now (in a curses-like interface) is I have a > menu displayed in the middle of the screen and the user presses the first > letter of a menu item to select it. If it's a category, then a submenu > pops to the right where they can repeat the process until they get to a > leaf (hitting escape goes back one level)
The obvious question: why do you want to do that? Isn't it better to take advantage of the GUI, specially in the case where you need navigation, as is yours? > Is there a way to make a popup menu persistent (until I tell it to > disappear) and bound to a window rather than 'floating' (so it acts like a > normal widget in terms of moving the parent window around)? > > Right now I can make a menu pop up in the upper left corner of the screen > with this: > > menu.popup(None, None, lambda x: (0,0,0), 0, 0) You would probably be better off using a list widget and handling keypresses there. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
