pyside6-modern-widgets
Cross-platform desktop widgets for PySide6. The package provides frameless window chrome, navigation, and tabs while retaining familiar Qt widget APIs.
ModernWindow: a lightweight, framelessQWidgetwindow with selectedQMainWindow-compatible methods.NavigationSidebar: a collapsible navigation sidebar.NavigationView: a sidebar and synchronized page stack in one widget.TabView: a WinUI-inspired tab widget.
Supported environment
Supports Windows, macOS, and Linux with Python 3.10-3.12, PySide6 6.8.3, and the Fusion style. Window backgrounds, including the custom title bar, use the same Qt-painted watercolor themes and behavior on every platform.
Right-clicking the custom title bar opens the native Windows system menu. On platforms without an equivalent frameless-window API, a Qt menu provides the available restore, minimize, maximize, and close commands.
Installation
pip install pyside6-modern-widgets
PyInstaller
The installed package automatically registers its PyInstaller hook. Applications
using these widgets can be frozen normally without package-specific
--hidden-import or --add-data options:
pyinstaller your_app.py
Example
from PySide6.QtGui import QAction
from PySide6.QtWidgets import QApplication, QLabel
from pyside6_modern_widgets import ModernWindow
app = QApplication([])
window = ModernWindow()
window.setWindowTitle("Modern window")
file_menu = window.menuBar().addMenu("&File")
exit_action = QAction("Exit", window)
exit_action.triggered.connect(window.close)
file_menu.addAction(exit_action)
window.setCentralWidget(QLabel("Hello"))
window.resize(800, 500)
window.show()
app.exec()
Themes
Widgets follow the process-wide theme manager by default. A theme change also updates the application palette so regular Qt content remains readable:
from pyside6_modern_widgets import DARK_THEME, theme_manager
theme_manager().setTheme(DARK_THEME)
Use theme_manager().setFollowsSystemTheme(True) to select a built-in theme
from application palette changes. Pass theme=LIGHT_THEME or
theme=DARK_THEME to an individual widget for a local override. Layout metrics
can be customized with ModernMetrics without modifying component internals.
TabView uses the standard Qt argument order: addTab(widget, text) or
addTab(widget, icon, text). The former reverse (widget, text, icon) order is
not supported.
Runnable window/navigation and multi-tab examples are available in the
examples directory.
ModernWindow intentionally remains based on QWidget, so it is suitable for both
primary and auxiliary windows. Its compatibility surface is limited to the common
menuBar(), addToolBar(), statusBar(), and setCentralWidget() methods; it does
not implement QMainWindow docking or state-management features.
The bundled window and navigation icons are provided by Icons8 and remain subject to the Icons8 license.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyside6_modern_widgets-0.3.3.tar.gz.
File metadata
- Download URL: pyside6_modern_widgets-0.3.3.tar.gz
- Upload date:
- Size: 46.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51c340f5f8964bedf8105d65aefef9ea7b7577472ae1ea5c0959d0e9b718b86d
|
|
| MD5 |
c2adf4631c03dc4a99adbdc087e83968
|
|
| BLAKE2b-256 |
bf70b5db2fb8cc64c668d35efc890d0585fa9ff663fe109280f79676d0fee721
|
Provenance
The following attestation bundles were made for pyside6_modern_widgets-0.3.3.tar.gz:
Publisher:
publish.yml on zero-ljz/pyside6-modern-widgets
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyside6_modern_widgets-0.3.3.tar.gz -
Subject digest:
51c340f5f8964bedf8105d65aefef9ea7b7577472ae1ea5c0959d0e9b718b86d - Sigstore transparency entry: 2579703204
- Sigstore integration time:
-
Permalink:
zero-ljz/pyside6-modern-widgets@3cb0a10ee4da986bd26d1fb5fb6334457f9b7f0e -
Branch / Tag:
refs/tags/v0.3.3 - Owner: https://github.com/zero-ljz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3cb0a10ee4da986bd26d1fb5fb6334457f9b7f0e -
Trigger Event:
release
-
Statement type:
File details
Details for the file pyside6_modern_widgets-0.3.3-py3-none-any.whl.
File metadata
- Download URL: pyside6_modern_widgets-0.3.3-py3-none-any.whl
- Upload date:
- Size: 42.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
844eb77e439ac25878f8f6ec0e01d662d3c8673d78b295771f3c26505c895905
|
|
| MD5 |
eadab23731b7b25bc0c463d01b65e813
|
|
| BLAKE2b-256 |
877b5d944b93e989ed21151eca5088d2b7541d642efc9a17be526a970cd038f4
|
Provenance
The following attestation bundles were made for pyside6_modern_widgets-0.3.3-py3-none-any.whl:
Publisher:
publish.yml on zero-ljz/pyside6-modern-widgets
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyside6_modern_widgets-0.3.3-py3-none-any.whl -
Subject digest:
844eb77e439ac25878f8f6ec0e01d662d3c8673d78b295771f3c26505c895905 - Sigstore transparency entry: 2579703207
- Sigstore integration time:
-
Permalink:
zero-ljz/pyside6-modern-widgets@3cb0a10ee4da986bd26d1fb5fb6334457f9b7f0e -
Branch / Tag:
refs/tags/v0.3.3 - Owner: https://github.com/zero-ljz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3cb0a10ee4da986bd26d1fb5fb6334457f9b7f0e -
Trigger Event:
release
-
Statement type: