winmica
A simple Python package to enable Windows 11 Mica effects for PyQt6 applications using the official Windows API.
Installation
Install this package (from the project root):
pip install winmica
Usage Example (PyQt6)
from PyQt6.QtWidgets import QApplication, QMainWindow
from PyQt6.QtCore import Qt
from winmica import EnableMica, BackdropType, is_mica_supported
import sys
class MyWindow(QMainWindow):
def __init__(self):
super().__init__()
self.setWindowTitle("Mica Example")
self.setGeometry(100, 100, 600, 400)
self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground, True)
if is_mica_supported():
hwnd = int(self.winId())
EnableMica(hwnd, BackdropType.MICA)
if __name__ == "__main__":
app = QApplication(sys.argv)
window = MyWindow()
window.show()
sys.exit(app.exec())
Features
- Official Windows 11 Mica Effect
- Simple API:
EnableMica(hwnd, backdrop_type) - Works with PyQt6 windows (may also work with PySide6 or Tkinter, but not tested)
- Detects system theme (light/dark)
Effect Types
BackdropType.MICA– Standard MicaBackdropType.MICA_ALT– Alternative MicaBackdropType.AUTO– Auto (let Windows decide)
Result:
Metadata
Release files for winmica 1.0.3
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 |
|---|---|---|---|---|
| winmica-1.0.3.tar.gz | 3.9 kB | Without provenance | Details for winmica-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| winmica-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for winmica-1.0.3-py3-none-any.whl |
Total release size: 8.1 kB
Release files / winmica-1.0.3.tar.gz
| Download URL | winmica-1.0.3.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5c3616a72206f640b0c270d205fdcbd3c9e1cc7d378e15404de715313217cd5
|
|
BLAKE2b-256 checksum How to use checksums |
b466cb33a55b086e6a2b137e6f3ad5db0b36e64411fdfee76c93d7727b8ca80c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / winmica-1.0.3-py3-none-any.whl
| Download URL | winmica-1.0.3-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f7adc8f57d2fde71879f85ef0892d34ff0aa1a261682ddcd1999e44a9996bfa
|
|
BLAKE2b-256 checksum How to use checksums |
2d48f9c184791dbfc5bba3f95285d4de88148629d75e248483e0c7844d3d5be0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for winmica 1.0.3
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.