win32material
Apply some window effects like mica micaalt acrylic to the Win32 Applications.
Can also change the window's titlebar color, border type and so on. (Windows 11 only)
Installation
pip install win32material --user
Help
How to get the hwnd of the window?
from ctypes import windll, c_char_p
hwnd = windll.user32.FindWindowW(c_char_p(None), "{Your window name}")
Gallery
from win32material import ApplyMica, ApplyAcrylic
# ApplyMica(hwnd, theme, micaalt)
# ApplyAcrylic(hwnd, extend)
ChangeTitlebarColor(hwnd, "#111111")
ChangeBorderColor(hwnd, "#114514")
ChangeTitleColor(hwnd, "#745616")
SetBorderType(hwnd, BORDERTYPE.RECTANGULAR)
SetBorderType(hwnd, BORDERTYPE.ROUND)
SetBorderType(hwnd, BORDERTYPE.SMALLROUND)
Thanks
Get the idea of applying mica from https://github.com/marticliment/win32mica/ And some other ideas from https://github.com/Akascape/py-win-styles
Metadata
Release files for win32material 1.0.7
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 |
|---|---|---|---|---|
| win32material-1.0.7.tar.gz | 3.8 kB | Without provenance | Details for win32material-1.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| win32material-1.0.7-py3-none-any.whl | Python 3 | none | any | Details for win32material-1.0.7-py3-none-any.whl |
Total release size: 8.3 kB
Release files / win32material-1.0.7.tar.gz
| Download URL | win32material-1.0.7.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92d83ff391559c05f4c9da2d5117e8304e3d1e60c7153fd1f75c479198b4aa78
|
|
BLAKE2b-256 checksum How to use checksums |
c8a5309ed49500ca39869c94cb712f80f16b16d141037fb8212e3217e03b5a7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.21
|
Release files / win32material-1.0.7-py3-none-any.whl
| Download URL | win32material-1.0.7-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2649bd3b8e12d795bfff420721358ae7a33a479a735f00d1755223e8d291e691
|
|
BLAKE2b-256 checksum How to use checksums |
8891d99e70780ecd21e180f363547d7a5cee465039df96b5d9eb9f311a91e3a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.21
|
Security for win32material 1.0.7
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.