tkinter menus

Martin Rand hsl at tcp.co.uk
Mon Jul 10 12:53:04 EDT 2000


On Mon, 10 Jul 2000 14:26:40 GMT, Keith Murphy <kpmurphy at my-deja.com>
wrote:

>menu, menu... anyone, anyone?
>
>	How do you configure top-level menu entries?  I'd like to put a 'help'
>menu (and possibly others) on the right end of the menu bar.  I've seen
>examples where you make your own frame... but there has to be a way
>built in... doesn't there?  :)
>
In Tkinter, when you use the appropriate geometry manager to put the
button in the menu bar. E.g:
helpButton = Menubutton(myMenuBar, ...)
helpButton.Pack(side=RIGHT, ...)

Or if you're using Pmw, then you can do something like:
myMenuBar = Pmw.MenuBar(...)
myMenuBar.addmenu(side=RIGHT,...)

--
Martin Rand
Highfield Software Ltd
mwr at highfield-software.co.uk
Phone: +44 (0)23 8025 2445
Fax:   +44 (0)23 8025 2445



More information about the Python-list mailing list