Skip to main content

Qt widgets library

Project description

qt-widgets

Reusable Qt widgets library.

Browser Widget

Automatic layout for similar objects.

model: List[str] = [f'data {_}' for _ in range(10_000)]

browser = BrowserWidget(
    config=BrowserConfig(
        item=Item(
            # width=200,
        ),
        page=Page(
            index=4,
            size=25
        ),
    ),
    builder=lambda item: QPushButton(item),
    model=model,
)

Gallery Widget

Based on Browser Widget with auto-resize behavior.

def builder(path: str):
    def reader() -> numpy.ndarray:
        return cv2.imread(path)

    return reader


widget = GalleryWidget(
    images=[
        builder('image1.jpg'),
        builder('image2.jpg')
    ],
    config=BrowserConfig(
        page=Page(size=20)
    )
)

Install

pip install qt-widgets

Requirements

PyQt5

pip install pyqt5
pip install pyqt5-tools

Usage

Run any script from the test folder.

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

qt-widgets-0.0.1.dev7.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

qt_widgets-0.0.1.dev7-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file qt-widgets-0.0.1.dev7.tar.gz.

File metadata

  • Download URL: qt-widgets-0.0.1.dev7.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for qt-widgets-0.0.1.dev7.tar.gz
Algorithm Hash digest
SHA256 33c1e97f6d2212cfd71c7a795b6aa22beeb6e091a9ebb2881cf9f3c0428e4e9f
MD5 1397aae21f0919c28a6ff4cca827654e
BLAKE2b-256 07ceba7b74091515f13a2627b29473bee10d50b9860888f228904ab714a2c5e8

See more details on using hashes here.

File details

Details for the file qt_widgets-0.0.1.dev7-py3-none-any.whl.

File metadata

  • Download URL: qt_widgets-0.0.1.dev7-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for qt_widgets-0.0.1.dev7-py3-none-any.whl
Algorithm Hash digest
SHA256 c64fad6b194171d6f9ae10d4759bda2083c9ce70253b32db465d2a68ed0f0b0a
MD5 a6807db10523f42a9d261c07ce6fdd22
BLAKE2b-256 b1f1532b36abe40f812ffdb6ded175fc82983b07176a3ad14541bb0977fa686d

See more details on using hashes here.

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