如何更改 ttk::checkbutton 和 ttk::radiobutton 指标的大小

How to change size of the indicator of ttk::checkbutton and ttk::radiobutton

我想更改 ttk::checkbutton 与 clam 主题相结合的指标的大小。如果我使用默认主题,我可以通过选项 indicatordiameter 更改大小,但这不适用于 clam 主题。 ttk::radiobutton.

也会出现同样的问题

主题有不同的问题。

a) 不同的主题使用不同的配置选项。

b) 图形主题无法调整其图形元素的大小。

对于clam主题,您需要配置样式的-indicatorsize

% package require Tk
8.6.9
% ttk::style theme use clam
% ttk::radiobutton .a -text hello
.a
% pack .a
% ttk::style configure A.TRadiobutton -indicatorsize 20
% ttk::radiobutton .b -text hello -style A.TRadiobutton
.b
% pack .b
%