首页 > 解决方案 > ttk notebook 加粗标签

问题描述

有没有办法让标签周围的边框ttk Notebook更粗?ttk(在此处找到)的文档列出了以下关键字:

有没有办法获得类似于relief许多标准tkinter小部件的参数?这是我的示例代码:

import tkinter.ttk as ttk
from tkinter import Tk, Label
root = Tk ()
notebook = ttk.Notebook (root)
notebook.add (Label (notebook, text = "Page 1 content."), text = "Page 1")
notebook.add (Label (notebook, text = "Page 2 content."), text = "Page 2")
notebook.add (Label (notebook, text = "Page 3 content."), text = "Page 3")
notebook.pack ()
root.mainloop ()

提前谢谢了。

标签: pythontkinterttk

解决方案


推荐阅读