Tkinter add_cascade option_add
Eric Brunel
eric_brunel at despammed.com
Wed Sep 14 02:52:58 EDT 2005
On Tue, 13 Sep 2005 22:31:31 -0600, Bob Greschke <bob at greschke.com> wrote:
> Root.option_add("*?????*font", "Helvetica 12 bold")
>
> Want to get rid of the "font =":
> Widget.add_cascade(label = "File", menu = Fi, font = "Helvetica 12 bold")
>
> Does anyone know what ????? should be to control the font of the cascade
> menus (the labels on the menu bar)? "*Menu*font" handles the part that
> drops down, but I can't come up with the menu bar labels part.
option_add('*Menu.font', 'helvetica 12 bold') works for me for all sorts of menu items (cascade, commands, checkbuttons, whatever...).
What is your platform? There may be a few limitations for menu fonts on Windows.
HTH
--
python -c "print ''.join([chr(154 - ord(c)) for c in 'U(17zX(%,5.zmz5(17;8(%,5.Z65\'*9--56l7+-'])"
More information about the Python-list
mailing list