[Tutor] Question about the FONT in Tkinter
Kent Johnson
kent37 at tds.net
Mon Aug 3 20:23:53 CEST 2009
On Sat, Aug 1, 2009 at 12:12 PM, Mohannad
Mohammad<mohannadmohammad at hotmail.com> wrote:
> Kindly refer to the attached photo.
> There are two sentences appearing when the user checked two checkbutton, I
> make it as a practice.
> ok
> I want to change the font of these two sentences. how?
> self.box = Text(self, width = 400, height = 10, wrap = WORD)
Add a font= parameter, for example
self.box = Text(self, width = 400, height = 10, wrap = WORD,
font=("Helvetica", 10, "bold italic")
http://www.pythonware.com/library/tkinter/introduction/x444-fonts.htm
Kent
More information about the Tutor
mailing list