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

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.4.0.post2.tar.gz (50.9 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.4.0.post2-cp39-abi3-win_amd64.whl (395.5 kB view details)

Uploaded CPython 3.9+Windows x86-64

pyqt6ads-4.4.0.post2-cp39-abi3-manylinux_2_28_x86_64.whl (444.1 kB view details)

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

pyqt6ads-4.4.0.post2-cp39-abi3-macosx_11_0_arm64.whl (347.2 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

pyqt6ads-4.4.0.post2-cp39-abi3-macosx_10_14_x86_64.whl (364.9 kB view details)

Uploaded CPython 3.9+macOS 10.14+ x86-64

File details

Details for the file pyqt6ads-4.4.0.post2.tar.gz.

File metadata

  • Download URL: pyqt6ads-4.4.0.post2.tar.gz
  • Upload date:
  • Size: 50.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyqt6ads-4.4.0.post2.tar.gz
Algorithm Hash digest
SHA256 3d5063536b5448c83015b3e431ac2c7ef5c33508e47216a51088b9cbeb9f5a81
MD5 fa836b2aba01017fa56b165bd82f936a
BLAKE2b-256 9d1f759491f372e3b51321b63a30637d3444983d8e35b9ac579bb7ee90322bab

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyqt6ads-4.4.0.post2.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.4.0.post2-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for pyqt6ads-4.4.0.post2-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 eb3584196bf30fc00c8debca61e97920b77bc24508ca3b792d824c17f8fe3bea
MD5 a282da7cd8247bf07ff38e9f5ea3526f
BLAKE2b-256 a5f9853b94522858a97d703cd765679ff519d8d254f5c84ffbc3dde76301f067

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyqt6ads-4.4.0.post2-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.4.0.post2-cp39-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyqt6ads-4.4.0.post2-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 93e63b81f14d84055ef5ab1f085c5b3df028969fa9fbcb76d47e2cb803654ea4
MD5 9ac1a8afb184632794d291a1dc4cd679
BLAKE2b-256 f5338fcd8e7e0b6b64ff2f2e4159ed05eb848719fcd6acb3d0e0324fc1fd8c6c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyqt6ads-4.4.0.post2-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.4.0.post2-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyqt6ads-4.4.0.post2-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 79d55e1ad5bbfc4a9e66aa31909d6142197c782b9ec4d1191ceb80e6e42db346
MD5 20d348fe94a84e6b7dd490c5aa3e0f9f
BLAKE2b-256 af9292a07b66bb4de810bc4e622340b95fa4fb210cbcd946cf46fd298c526af3

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyqt6ads-4.4.0.post2-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.4.0.post2-cp39-abi3-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for pyqt6ads-4.4.0.post2-cp39-abi3-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 921292b46f1f84338b1dc8ff06b0ed8162c044cad34e2b0b1b1e558598f17bfd
MD5 c0e52c307da4a1f4d028f2c08f6f9f2e
BLAKE2b-256 b812ff90f9ea898048e87d8a7e223a7844169d742a7b614ed0171a33ca610fdd

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyqt6ads-4.4.0.post2-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