05-py-window-styles打造Windows 11风格Python UI
支持多种库
- Tkinter
- Customtkinter
- PyQt
- PySide
- WxPython
- Pygame
- Kivy
- PySimpleGUI
- DearPyGui
安装第三方库
1 |
|
使用 pywinstyles.apply_style() 函数将主题应用到该窗口
下面是测试代码
1 |
|
效果如下
风格 | 效果 |
---|---|
mica | ![]() |
acrylic | ![]() |
aero (GPU Heavy) | ![]() |
transparent (GPU Heavy) | ![]() |
optimised | ![]() |
win7 | ![]() |
inverse | ![]() |
native | ![]() |
popup | ![]() |
dark | ![]() |
normal | 不修改 |
05-py-window-styles打造Windows 11风格Python UI
https://pattianfang.github.io/2025/08/06/05-py-window-styles打造Windows 11风格Python UI/