tkinter: Can You Underline More Than 1 Char In A Menu Title

Tim Roberts timr at probo.com
Tue Feb 1 00:50:44 EST 2005


Tim Daneliuk <tundra at tundraware.com> wrote:
>
>I am currently underling the first character of a menu title (to indicate
>its shortcut/accelerator key) like this:
>
>    self.WildBtn = Menubutton(self.mBar, text=WILDMENU, underline=0, state=DISABLED)
>
>However, I intend to actually have two separate keys invoke this menu
>to have it behave differently in different circumstances.

You can, of course, CHANGE the underlined character to match the
circumstances.
-- 
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list