[Tkinter-discuss] Change the font style (bold, italic, stikethru, normal) of widgets without explictly knowing font?

python at bdurham.com python at bdurham.com
Tue Nov 23 01:23:28 CET 2010


Wayne,

> mylabel.config(font=mylabel.config()['font'][4][:2] +
('normal',))
> mylabel.config(font=mylabel.config()['font'][4][:2] + ('bold',
'italics'))

That works!

Thank you,
Malcolm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20101122/57b69976/attachment.html>


More information about the Tkinter-discuss mailing list