试图改变Checkbutton的风格,我只是好奇它是否可以改变盒子本身的大小?
这就是我到目前为止所拥有的.在配置部分尝试'高度'和'宽度',但似乎没有拿起它.
s = ttk.Style()
s.theme_use('default')
s.configure("cbutton.TCheckbutton", foreground='#ebebeb', background='#5c5c5c', font=("arial", 14))
s.theme_settings("default",
{"TCheckbutton": {
"configure": {"padding": 5},
"map": {
"background": [("active", "#5C5C5C"),("!disabled", "#5C5C5C")],
"fieldbackground": [("!disabled", "#5C5C5C")],
"foreground": [("focus", "lightgray"),("!disabled", "lightgray")], "indicatorcolor": [('selected','#9ac947'),('pressed','#9ac947')]
}
}
})
Run Code Online (Sandbox Code Playgroud)
这可能吗?
谢谢!
是否可以使用Openpyxl打开并写入受密码保护的.XLSX文件?
可能是另一个参数添加到load_workbook()方法?
wb = load_workbook(filename = 'Test.xlsx')
Run Code Online (Sandbox Code Playgroud)
干杯,