[Python-bugs-list] [Bug #110837] Tkinter Optionmenu doesn't accept 'font' resource (PR#229)
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 6 Aug 2000 14:10:15 -0700
Bug #110837, was updated on 2000-Aug-01 14:14
Here is a current snapshot of the bug.
Project: Python
Category: Tkinter
Status: Closed
Resolution: Wont Fix
Bug Group: Feature Request
Priority: 5
Summary: Tkinter Optionmenu doesn't accept 'font' resource (PR#229)
Details: Jitterbug-Id: 229
Submitted-By: aa8vb@yahoo.com
Date: Thu, 9 Mar 2000 08:57:50 -0500 (EST)
Version: 1.5.2
OS: IRIX 6.5
menu = apply( OptionMenu, ( parent, var ) + tuple( option_names ),
{ 'font':PANEL_FONT } )
generates:
TypeError: unexpected keyword argument: font
It would be helpful if the 'font' resource were accepted and used to create the
menubutton and child command widgets.
In its absense, folks need to poke at the internals of OptionMenu (obviously
not a good idea) or establish a parent frame for each option menu with a
unique name and use option_add to stuff *Class*Font: resources into the Tk
resource database.
If the 'font' option were supported, it would simplify this greatly.
Thanks,
Randall
====================================================================
Audit trail:
Mon Apr 03 18:37:34 2000 guido changed notes
Mon Apr 03 18:37:34 2000 guido moved from incoming to request
Follow-Ups:
Date: 2000-Aug-01 14:14
By: none
Comment:
From: Guido van Rossum <guido@python.org>
Subject: Re: [Python-bugs-list] Tkinter Optionmenu doesn't accept 'font' resource (PR#229)
Date: Thu, 09 Mar 2000 10:45:55 -0500
> It would be helpful if the 'font' resource were accepted and used to
> create the menubutton and child command widgets.
Unfortunately, the underlying Tk command, tk_optionmenu, doesn't
support this. Nothing I can do about it.
(See
http://dev.scriptics.com/man/tcl8.3/TkCmd/optionMenu.htm.)
--Guido van Rossum (home page: http://www.python.org/~guido/)
-------------------------------------------------------
Date: 2000-Aug-01 14:14
By: none
Comment:
Probably won't be done.
-------------------------------------------------------
Date: 2000-Aug-06 14:10
By: twouters
Comment:
Not much Python can do, since it's a Tk limitation.
-------------------------------------------------------
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=110837&group_id=5470