Skip to main content

Python bindings for Qt Advanced Docking System

Project description

PyQt6Ads

License PyPI Python Version Build

PyQt6 Bindings for (the amazing) Qt-Advanced-Docking-System

Video Advanced Docking

Installation

pip install PyQt6Ads

Usage

Please see documentation in the upstream repo.

See also examples in this repo.

The autogenerated type stubs are also useful for understanding the API.

Minimal Example

from PyQt6.QtCore import Qt
from PyQt6.QtGui import QAction
from PyQt6.QtWidgets import QMainWindow, QLabel
import PyQt6Ads as ads


class MainWindow(QMainWindow):
    def __init__(self) -> None:
        super().__init__()

        # create the dock manager
        # If the parent is a QMainWindow, DockManager sets itself as the central widget.
        self.dock_manager = ads.CDockManager(self)

        # create an example widget to place inside the dock widget
        lbl = QLabel()
        lbl.setWordWrap(True)
        lbl.setAlignment(Qt.AlignmentFlag.AlignTop | Qt.AlignmentFlag.AlignLeft)
        lbl.setText("Lorem ipsum dolor sit amet, consectetuer adipiscing elit.")

        # create a dock widget with the title "Label 1"
        # and set the created label as the dock widget content
        dw = ads.CDockWidget("Label 1")
        dw.setWidget(lbl)

        # add the toggleViewAction of the dock widget to the menu
        # to give the user the possibility to show the dock widget if it has been closed
        self.menuView = self.menuBar().addMenu("View")
        self.menuView.addAction(dw.toggleViewAction())

        # add the dock widget to the top dock widget area
        self.dock_manager.addDockWidget(ads.DockWidgetArea.TopDockWidgetArea, dw)

Alternatives

Developers

To build the wheel locally, use cibuildwheel:

export QT_VERSION=6.5.3
uvx cibuildwheel

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyqt6ads-4.5.0.tar.gz (52.1 MB view details)

Uploaded Source

Built Distributions

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

pyqt6ads-4.5.0-cp39-abi3-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.9+Windows x86-64

pyqt6ads-4.5.0-cp39-abi3-manylinux_2_28_x86_64.whl (445.5 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ x86-64

pyqt6ads-4.5.0-cp39-abi3-macosx_11_0_arm64.whl (347.6 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

pyqt6ads-4.5.0-cp39-abi3-macosx_10_14_x86_64.whl (366.2 kB view details)

Uploaded CPython 3.9+macOS 10.14+ x86-64

File details

Details for the file pyqt6ads-4.5.0.tar.gz.

File metadata

  • Download URL: pyqt6ads-4.5.0.tar.gz
  • Upload date:
  • Size: 52.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyqt6ads-4.5.0.tar.gz
Algorithm Hash digest
SHA256 df0f161e6cced3d006f0bd70b3c4d03609e84b68182c05c848aa4df0cfcc3337
MD5 701e5ef8e8d850fe57d9be63115855c3
BLAKE2b-256 21c8dbe010d7f8f7cda828d1d9004d1aeac75c4699eb543ff55b0e131982bd1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyqt6ads-4.5.0.tar.gz:

Publisher: pypi.yml on pyapp-kit/PyQt6Ads

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

File details

Details for the file pyqt6ads-4.5.0-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: pyqt6ads-4.5.0-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyqt6ads-4.5.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 58c26cd6362822a05dc4daeac6c42b77c88ec1f9b4d5747dd9c470ee87b3c3a7
MD5 4b3837453c1e6f359a8eeb701a7a20b6
BLAKE2b-256 8a4d7874bee95205061e4b1db098aada4cc0650b0061fae3d26638eec51dbb5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyqt6ads-4.5.0-cp39-abi3-win_amd64.whl:

Publisher: pypi.yml on pyapp-kit/PyQt6Ads

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

File details

Details for the file pyqt6ads-4.5.0-cp39-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyqt6ads-4.5.0-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 62193279ae3676d15cdbb08337079cf271cc28c4c1d088939d06d4387809baa6
MD5 0a405a6f67317eb8519074f095a54835
BLAKE2b-256 5ef7e565a685169353b21108c9a96839f8f1d354fb01776de9083908bb81ca38

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyqt6ads-4.5.0-cp39-abi3-manylinux_2_28_x86_64.whl:

Publisher: pypi.yml on pyapp-kit/PyQt6Ads

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

File details

Details for the file pyqt6ads-4.5.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyqt6ads-4.5.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 80a877822917c8afd930e5670be3cedfa8f40d1b72d5f1b937703ae4230c7ec6
MD5 193bb9fdec85570ebf4aa844eaaf05e0
BLAKE2b-256 8ab78baeb3e1eaa9edaedc3bfe208f976986272348346029b39aed7e551f1308

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyqt6ads-4.5.0-cp39-abi3-macosx_11_0_arm64.whl:

Publisher: pypi.yml on pyapp-kit/PyQt6Ads

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

File details

Details for the file pyqt6ads-4.5.0-cp39-abi3-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pyqt6ads-4.5.0-cp39-abi3-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 561f200ed4b39069d7a28a56e22b1185c00be1d1c7eb003ab22c75acffddd1f5
MD5 6a17db182f373413b2a16277d04d2a03
BLAKE2b-256 91ab8fae572e4ec2ed9fc1404c951d7725926c40e6e9d016a446d40f4a5c44cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyqt6ads-4.5.0-cp39-abi3-macosx_10_14_x86_64.whl:

Publisher: pypi.yml on pyapp-kit/PyQt6Ads

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page