Skip to main content

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 Mica
  • BackdropType.MICA_ALT – Alternative Mica
  • BackdropType.AUTO – Auto (let Windows decide)

Result:

mica micaalt

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)

Source distribution for winmica 1.0.3
File Size Uploaded
winmica-1.0.3.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for winmica 1.0.3
File Interpreter ABI Platform
winmica-1.0.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page