How can I make the label of the second labelframe have the same fontas the first? The color is readily available (since I set it myself),
Linux and Windows, tk 8.6.14
Consider two labelframes:
# using the "built-in" label
ttk::style configure TLabelframe.Label -foreground blue
pack [ttk::labelframe .lf1 -text "Labelframe 1"]
pack [button .lf1.b -text Btn1]
# using extra label widget as label
pack [ttk::labelframe .lf2 ]
label .lf2.lbl -text "Labelframe 2"
.lf2 configure -labelwidget .lf2.lbl
pack [button .lf2.b -text Btn2]
How can I make the label of the second labelframe have the same fontas the first? The color is readily available (since I set it myself),
but I don't find any introspection for the *default* font itself in ttk::style:
% ttk::style configure TLabelframe.Label
[nothing]
I *can* configure the font via
ttk::style configure TLabelframe.Label -font {Helvetica 16}
but I'd like to use the _default_ whatever it is on the different platforms.
R'
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 307 |
Nodes: | 16 (2 / 14) |
Uptime: | 111:49:19 |
Calls: | 6,854 |
Files: | 12,355 |
Messages: | 5,416,421 |