tkinter: Scrolling Very Long Menus On X-Windows
Howard Lightstone
howard at eegsoftware.com
Mon Jan 13 00:37:06 EST 2003
Tim Daneliuk <tundra at tundraware.com> wrote in
news:mldtva.9cr.ln at boundary.tundraware.com:
> 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 ...
>
Try Pmw. It's Python (using Tkinter) and it has all those automatic
scrolled regions you want.
More information about the Python-list
mailing list