This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author qubodup
Recipients qubodup
Date 2016-09-29.15:28:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1475162908.88.0.380159075782.issue28313@psf.upfronthosting.co.za>
In-reply-to
Content
The following code will result in a small label and a big button:

from tkinter import *
from tkinter.ttk import *

root = Tk()

root.option_add("*Font", "sans-serif 12")

s = Style()
s.configure('TButton', font=('courier', 40))
s.configure('TLabel', font=('courier', 40))

Label(root, text="lbl").pack()
Button(root, text="bttn").pack()

root.mainloop()


It seems to me that both should have the same style. Removing the root.option_add line fixes it of course but this is a stripped-down example and in other cases it might be needed.
History
Date User Action Args
2016-09-29 15:28:28qubodupsetrecipients: + qubodup
2016-09-29 15:28:28qubodupsetmessageid: <1475162908.88.0.380159075782.issue28313@psf.upfronthosting.co.za>
2016-09-29 15:28:28quboduplinkissue28313 messages
2016-09-29 15:28:28qubodupcreate