【发布时间】:2018-08-19 10:38:21
【问题描述】:
我正在尝试在我的 python tkinter 应用程序中更改 ttk Notebook 小部件的背景颜色,使其匹配蓝色而不是白色。
我已尝试搜索数小时但无济于事。是不是因为我在 Mac 上工作而无法正常工作?
tabs_notebook = ttk.Notebook(self)
tabs_notebook.configure(bg=DARKBLUE)
tabs_notebook.pack()
view_tab = ttk.Frame(tabs_notebook)
new_tab = ttk.Frame(tabs_notebook)
tabs_notebook.add(view_tab, text="View Patient Details")
tabs_notebook.add(new_tab, text="Add New Patient")
【问题讨论】:
-
如果您还没有找到解决方案,我找到了一个对我有很大帮助的解决方案!祝你好运! page.sourceforge.net/html/themes.html
标签: ttk tkinter python tkinter colors ttk