Tkinter - how to right align Help Menu cascade??

David LeBlanc whisper at oz.nospamnet
Sat May 19 13:25:03 EDT 2001


In article <3B06276A.688FF5C4 at engineer.com>, doug.hilton at engineer.com 
says...
> This is a trivial thing, but I wan't my Help cascade right-aligned and
> cannot locate any options in the Tkinter docs.
> 
> helpmenu = Tkinter.Menu( menu )
> menu.add_cascade( label="Help", anchor=Tkinter.W, menu=helpmenu )
>                                                     ^^^^^^^^^^^^^^^^^^^^^^
> 
> Obviously this doesn't work, but that is what I would _like_ to do.
> 
> Thanks
> - Doug
> 
In the old days of Tk, when menus where actual Tk widgets, this was 
definately possible, but now that Tk wraps the underlying OS widget for 
menus and other things, i'm not so sure it's possible anymore. It's been 
so long since the standard for the Help menu on the right side of the 
menubar changed, I don't recall how I used to do it in windows either. If 
it was some lead character (which I sort of dimly remember), you might 
try using that as the first char of the menu label - i.e "Help" (try 
"~Help" and see what happens).

You might try asking this question over on comp.lang.tcl and see what 
they have to say.

Dave LeBlanc



More information about the Python-list mailing list