[Tkinter-discuss] Change font and size in control ttk.Entry
craf
prog at vtr.net
Tue Dec 7 20:44:20 CET 2010
Hi.
I'm trying to change the font type and size of a ttk.Entry control.
Example:
from tkinter import *
from tkinter import ttk
master=Tk()
s = ttk.Style()
s.theme_use('clam')
s.configure('TEntry', font='Monaco')
entrada = ttk.Entry(master, style='TEntry')
entrada.pack()
master.mainloop()
Unfortunately does not work.
Is there another way to do this?
Thank you very much in advance.
Regards.
Cristian Abarzua.
I USE: Python 3.1 - Tkinter 8.5 - Ubuntu 9.10
More information about the Tkinter-discuss
mailing list