'Tkinter just switch title bar to dark theme
Solution 1:[1]
list of themes for tkinter is here: https://wiki.tcl-lang.org/page/List+of+ttk+Themes
There is a whole variety of standard dark themes even before customisation of other themes...
Here is a code example:
from tkinter import ttk # Normal Tkinter.* widgets are not themed!
from ttkthemes import ThemedTk
# light themes
# window = ThemedTk(theme="arc")
# window = ThemedTk(theme="kroc")
# window = ThemedTk(theme="ubuntu")
# dark themes
# window = ThemedTk(theme="black")
window = ThemedTk(theme="equilux")
ttk.Button(window, text="Quit", command=window.destroy).pack()
window.mainloop()
If it it just the title bar (and not the theme) that you are wishing to change then this post covers it:
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |