tkinter: Scrolling Very Long Menus On X-Windows

jepler at unpythonic.net jepler at unpythonic.net
Sun Jan 12 20:46:24 EST 2003


On Mon, Jan 13, 2003 at 12:50:07AM +0000, Tim Daneliuk wrote:
> I have a situation where I dynamically create menus that are longer than
> the available vertical screen size.  On Win32, I get up- and down- scrolling
> buttons at the top and bottom of the menu respectively.  However, this
> does not happen on Unix (X).  Is there a way to get X to do the same thing?

Not as far as I know.  This is a limitation of the Menu widget as
implmented in Tkinter for X.  On Microsoft Windows, it uses the "real"
window control, which scrolls nicely.

With a little bit of work you could make an auto-cascading or
auto-subdividing menu, though.

Jeff





More information about the Python-list mailing list