New submission from Barron: After using the configure() method of a ttk.Style object to configure the font of TEntry, Entry widgets will still have the original default font.
The following 6 lines will demonstrate this in IDLE: >>> from tkinter import ttk >>> s = ttk.Style() >>> s.configure('TButton', font = ('Courier', 24)) >>> s.configure('TEntry', font = ('Courier', 24)) >>> ttk.Button(text = 'Button').pack() >>> ttk.Entry().pack() The Button will be displayed using the newly configured font, but the Entry widget will retain the default font. Calling the lookup() method after the above code reveals the following: >>> s.lookup('TEntry', 'font') 'Courier 24' This shows that the font property for TEntry is getting set properly, but it is not being displayed. Configuring the font property directly on individual Entry widgets does display correctly. ---------- components: Tkinter messages: 217114 nosy: barron priority: normal severity: normal status: open title: Configuring 'font' with ttk.Style for 'TEntry' does not change displayed font type: behavior versions: Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21341> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com