ttk笔记本粗体标签

时间:2018-09-03 17:12:58

标签: python tkinter ttk

是否可以使ttk Notebook上的标签周围的边框变粗? ttk(找到Amazon's sample events page)的文档列出了以下关键字:

  • 状态
  • 粘性
  • 填充
  • 文字
  • 图片
  • 化合物
  • 下划线

在许多标准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 ()

非常感谢。

0 个答案:

没有答案