Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/317.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python ttk笔记本加粗标签_Python_Tkinter_Ttk - Fatal编程技术网

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
方法中使用此选项,因此无法使用此选项。