【问题标题】:Tkinter Notebook removing shadowTkinter Notebook 去除阴影
【发布时间】:2020-07-31 08:27:54
【问题描述】:

是否可以删除? (有一个笔记本,另一个里面有'next') 已经试过borderwidthhighlightthicknes

我的主题:

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 配置。
  • 你可以在图像上看到它,在底部和右侧

标签: python tkinter tk ttk


【解决方案1】:

在笔记本元素上使用borderwidth: 0

【讨论】:

    猜你喜欢
    • 2018-05-24
    • 2012-10-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多