【发布时间】:2020-07-31 08:27:54
【问题描述】:
是否可以删除?
(有一个笔记本,另一个里面有'next')
已经试过borderwidth和highlightthicknes
我的主题:
style = ttk.Style()
style.theme_create("mytheme", parent="alt", settings={
"Tab": {"configure": []},
'Canvas': {'configure': {'bd' : -2}},
"TFrame": {"configure": {'borderwidth': -10, 'highlightthicknes': 0}},
"TNotebook": {
"configure": {"background": 'red', "tabmargins": [-2, -2, -2, -2]}}
}
)
style.theme_use("mytheme")
style = ttk.Style()
style.layout('TNotebook.Tab', [])
style.layout('TNotebook.padding', [])
【问题讨论】:
-
移除阴影:阴影是什么意思?根据STYLING OPTIONS,只有
bordercolor样式选项可通过ttk::style 配置。 -
你可以在图像上看到它,在底部和右侧