Skip to main content

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, frameless QWidget window with selected QMainWindow-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. The Theme Style submenu in the upper-right window menu switches between the modern and classic watercolor palettes while preserving the current light or dark mode and application accent color.

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.

NavigationView automatically collapses into an overlay sidebar at widths up to 900px and returns to the side-by-side layout at 1040px. On return it restores the expand/collapse intent last selected with the sidebar toggle. Applications with a custom responsive policy can call setAutoSidebarOverlay(False) and control the mode with setSidebarOverlay().

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

pyside6_modern_widgets-0.4.3.tar.gz (56.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyside6_modern_widgets-0.4.3-py3-none-any.whl (47.7 kB view details)

Uploaded Python 3

File details

Details for the file pyside6_modern_widgets-0.4.3.tar.gz.

File metadata

  • Download URL: pyside6_modern_widgets-0.4.3.tar.gz
  • Upload date:
  • Size: 56.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pyside6_modern_widgets-0.4.3.tar.gz
Algorithm Hash digest
SHA256 82cfe9f6ab0528de9bd64e3489d70ebf39d8e5a6d1e6c239072dbc21a53cce51
MD5 c173ca11f91d678b12b123d17ac4d208
BLAKE2b-256 7babcf31b8811d6eaee9d0e7eb171b51887ecbf008dc7c7c47cb43d8d81f625b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyside6_modern_widgets-0.4.3.tar.gz:

Publisher: publish.yml on zero-ljz/pyside6-modern-widgets

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyside6_modern_widgets-0.4.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pyside6_modern_widgets-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 93b55ff651f7eab6f18608449fc1d226ed0bae8f8114639c7efcdc90e9fac816
MD5 5ae89cab7375bcbdfcc6b4d132a9cd3e
BLAKE2b-256 084c2120d49b0002a77110f9e293c57890e26f63b2656b4940ba8f65d44621e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyside6_modern_widgets-0.4.3-py3-none-any.whl:

Publisher: publish.yml on zero-ljz/pyside6-modern-widgets

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.5.5

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

This release

0.4.3 This release

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 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