Skip to content

undecV/python-awthemes

Repository files navigation

Python-Awthemes

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.

Install

Install from GitHub

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

Useage

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")

Development Remark

  • Tested for compatibility with pygubu and pygubu-designer.
  • Tested for compatibility with pyinstaller (with argumet --collect-all "awthemes").
  • Tested for compatibility with ttkwidgets.

Reference

Releases

No releases published

Packages

No packages published