tkinter: Scrolling Very Long Menus On X-Windows

Tim Daneliuk tundra at tundraware.com
Mon Jan 13 05:10:07 CET 2003


jepler at unpythonic.net wrote:
> 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
> 

Thanks - I wonder how practical it would be to inherit from Menu and
add scrolling ...

-- 
------------------------------------------------------------------------------
Tim Daneliuk
tundra at tundraware.com





More information about the Python-list mailing list