This project is a port of the tcl-awthemes from Tcl/Tk to Python.
Awthemes is a library designed for Tcl/Tk, featuring elegant themes such as light, dark, with scalable options. These stylish themes are now accessible for use in Python's Tkinter applications, making it easier for Python developers to design modern and visually engaging GUI applications.
Check out Awthemes' screenshots and demos here.
Python-Awthemes is available in PyPI.
pip install python-awthemes
alternatively, add this to your requirements.txt
file:
python-awthemes
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
(GitHub) andpygubu-designer
(GitHub). - Tested for compatibility with
pyinstaller
(Homepage).- Add the argument
--collect-all "awthemes"
to your command. - If you're using scalable themes, include the argument
--collect-all "tksvg"
in the command as well.
- Add the argument
- Tested for compatibility with
ttkwidgets
(PyPi).
- Tcler's Wiki: awthemes
- SourceForge: tcl-awthemes (License: Zlib)
- GitHub: ttkthemes (License: GPL-3.0)
- PyPi: types-ttkthemes (License: Apache)
- PyPi: ttkthemes2 (License: MIT)