[ltk-user] Bold font for label

cage cage at katamail.com
Thu Jan 12 19:08:54 UTC 2012


On Thu, Jan 12, 2012 at 02:09:08AM +0100, syll-dev at laposte.net wrote:

[...]

> > try [...] :font "sans 11 bold" [...]
> > 
> > please see font(3tk) for explanation about the way tk manage font
> > description.
> 
> Thank you for your answer :) .

You're welcome! :)

> Is it possible  to get the font used by a  component and just modify
> it ? I would like to get the same font but in bold style.

Good question but i have no answer good enough! :)

I suggest  to save the  name (and  the size if  you wish) of  the font
elsewhere and  reconfigure the  widget with the  new weight  using the
configure function.

Bye!
C.




More information about the ltk-user mailing list