This project is a port of the tcl-awthemes from Tcl/Tk to Python. AWThemes is a library that provides attractive themes for Tcl/Tk, and now these rich and appealing themes can be utilized in Python’s Tkinter applications. This port allows Python developers to create GUI applications with a modern and appealing look more easily.
pip install git+https://github.com/undecV/python-awthemes
alternatively, add this to your requirements.txt
file:
python-awthemes @ git+https://github.com/undecV/python-awthemes.git@main
from awthemes import AwthemesStyle
root = tk.Tk()
# Load AwthemesStyle for your Tk root.
style = AwthemesStyle(root)
# Get all avaliable themes.
themes = style.theme_names()
# Set the theme.
style.theme_use("awdark")
- Tested for compatibility with
pygubu
andpygubu-designer
. - Tested for compatibility with
pyinstaller
(with argumet--collect-all "awthemes"
). - Tested for compatibility with
ttkwidgets
.
- Tcler's Wiki: awthemes
- SourceForge: tcl-awthemes (License: Zlib)
- GitHub: ttkthemes (License: GPL-3.0)
- PyPi: types-ttkthemes (License: Apache)
- PyPi: ttkthemes2 (License: MIT)