Tkinter: OptionMenu question
Randall Hopper
aa8vb at yahoo.com
Thu Mar 9 06:23:37 EST 2000
Peter Funk:
|Randall Hopper:
|> How do you set the font?
|>
|> This:
|>
|> menu = apply( OptionMenu, ( parent, var ) + tuple( option_names ),
|> { 'font':PANEL_FONT } )
|>
|> generates:
|>
|> TypeError: unexpected keyword argument: font
|
|Since 'Tkinter' itself contains no class 'OptionMenu', I guess you
|are using the fine Pmw package by Greg McFarlane.
Hi. Thanks for the reply. Actually I was using Tkinter. Tkinter does
have an OptionMenu class written in Python code that is instantiable (see
Tkinter.py::OptionMenu).
--
Randall Hopper
aa8vb at yahoo.com
More information about the Python-list
mailing list