py-window-styles
Customize your UI window with awesome built-in Windows 11 header styles and themes. Windows 10 is also supported (only themes).
Supported UI Libraries
- Tkinter
- Customtkinter
- PyQt
- PySide
- WxPython
- Pygame
- Kivy
- PySimpleGUI
- more...
Installation
pip install pywinstyles
Apply Window Styles/Themes
import pywinstyles
...
pywinstyles.apply_style(window, style)
...
| Style Name | Preview |
|---|---|
| mica | |
| acrylic | |
| aero (GPU Heavy) | |
| transparent (GPU Heavy) | |
| optimised | |
| win7 | |
| inverse | |
| native | |
| popup | |
| dark | |
| normal | No Change |
Apply Custom Window Colors (Only works in windows 11)
Change Title Bar Color
pywinstyles.change_header_color(window, color="#00524d")
Change Title Text Color
pywinstyles.change_title_color(window, color="white")
Change Border Color
pywinstyles.change_border_color(window, color="#00ffff")
Get Windows Accent Color
default_color = pywinstyles.get_accent_color() # returns hex color string
Set opacity of individual widgets
pywinstyles.set_opacity(widget_id, value=0.5)
Make a color transparent inside widget
pywinstyles.set_opacity(widget_id, color="white")
Add file DND feature to widgets
def drop_func(file):
print(file)
pywinstyles.apply_dnd(widget_id, frop_func)
Hope this package can help in UI development with python
Author: Akash Bora
Metadata
Release files for pywinstyles 1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pywinstyles-1.8.tar.gz | 10.5 kB | Without provenance | Details for pywinstyles-1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pywinstyles-1.8-py3-none-any.whl | Python 3 | none | any | Details for pywinstyles-1.8-py3-none-any.whl |
Total release size: 21.0 kB
Release files / pywinstyles-1.8.tar.gz
| Download URL | pywinstyles-1.8.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a087b1f45ef8d572b440712817dbbef8ae90793ab7fcc51b060851d2d6f301c
|
|
BLAKE2b-256 checksum How to use checksums |
095bc3356335b7f60a940c3e9c1aa6f3b6407af10b26c763739933c500937dbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.0
|
Release files / pywinstyles-1.8-py3-none-any.whl
| Download URL | pywinstyles-1.8-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17d89c6bc91569b676b71c00400ec958548302809858966c4cf447bb16a7e407
|
|
BLAKE2b-256 checksum How to use checksums |
9937be473b2d3bde387ef39e57b3ebabadfaaf0627333814e0c3813dac686f5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.0
|
Security for pywinstyles 1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.