Python ttk笔记本加粗标签
有没有办法使Python ttk笔记本加粗标签,python,tkinter,ttk,Python,Tkinter,Ttk,有没有办法使ttk笔记本上标签周围的边框更粗体?ttk(已找到)的文档列出了以下关键字: 陈述 粘的 填充物 正文 形象 复合物 下划线 在许多标准的tkinter小部件上,有没有一种方法可以获得类似于relief的参数?下面是我的示例代码: import tkinter.ttk as ttk from tkinter import Tk, Label root = Tk () notebook = ttk.Notebook (root) notebook.add (Label (noteb
ttk笔记本上标签周围的边框更粗体?ttk
(已找到)的文档列出了以下关键字:
- 陈述
- 粘的
- 填充物
- 正文
- 形象
- 复合物
- 下划线
在许多标准的tkinter
小部件上,有没有一种方法可以获得类似于relief
的参数?下面是我的示例代码:
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 ()
非常感谢。可能使用ttk样式?遗憾的是,由于无法在add
方法中使用此选项,因此无法使用此选项。