Skip to main content

a thin compatibility layer for Python code to use Qt through various wrappers

Project description

Resources

Documentation

Read the Docs

Documentation

Issues

GitHub

Issues

Repository

GitHub

Repository

Tests

GitHub Actions

Tests

Distribution

PyPI

Latest distribution version
Supported Python versions
Supported Python interpreters

Introduction

qts is a Qt5/6 and PyQt/PySide compatibility layer for your libraries and applications. It is designed to work with mypy and includes a CLI utility to notify mypy of the needed conditions. To keep the scope reasonable, qts will focus on the variances that all code using Qt will need such as imports and signals. Nuanced detailed differences will not be abstracted away. Helper functions and similar may be provided on a case by case basis.

import qts
import qts.util


def main():
    qts.set_wrapper(qts.available_wrappers()[0])

    from qts import QtWidgets

    application = QtWidgets.QApplication([])
    widget = QtWidgets.QLabel("this is qts")
    widget.show()
    qts.util.exec(application)

main()

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

qts-0.1.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

qts-0.1-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file qts-0.1.tar.gz.

File metadata

  • Download URL: qts-0.1.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for qts-0.1.tar.gz
Algorithm Hash digest
SHA256 f216977cfe4ef255ac79646cdbe448f8841a401a113f35a6be51c68c58fd6ee8
MD5 f2a1809d7b4e6b89ad65d7c685d80bf1
BLAKE2b-256 ccaf7f2eb6de4788b5c1729c1f571564ce0ba3315e75ee8a97cfebf20022917c

See more details on using hashes here.

File details

Details for the file qts-0.1-py3-none-any.whl.

File metadata

  • Download URL: qts-0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for qts-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a6a99ed15e34b51a7758e04a991f696113957a685f18220dcaa560b629cd48e2
MD5 d07260494b99c766276f738d1725351b
BLAKE2b-256 756e2e3f964f4be04a892121eb299a6736dd3da84505d64dc6d5f35faccaefcb

See more details on using hashes here.

Supported by

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