【发布时间】:2017-11-01 12:26:40
【问题描述】:
我想配置tkinter.ttk.Checkbutton 的样式style.configure('TCheckbutton', background=theme, foreground='white', anchor=tkinter.W) 以将该复选按钮对齐到左侧,因为现在它位于中心。非常感谢每一个答案:)
【问题讨论】:
-
请显示minimal reproducible example。您确定要更改样式而不是更改使用
grid或pack将其添加到窗口的方式吗? -
@Jakub Blàha 让我知道这是否适合你
-
我尝试使用
grid,但没有帮助。
标签: python tkinter alignment ttk