Skip to main content

PySide2/PyQt5 abstraction layer, mulithreading and UI loader utilities, icon set, and more

Project description

qtutils

PyPi Version Documentation Status GitHub release PyPi License

Utilities for providing concurrent access to Qt objects, simplified QSettings storage, and dynamic widget promotion when loading UI files, in Python Qt applications. Includes the Fugue icon set, free to use with attribution to Yusuke Kamiyamane.

Installation

  • To install the latest release version, run pip install qtutils.

  • To install latest development version, clone the GitHub repository and run pip install . to install, or pip install -e . to install in 'editable' mode.

Summary

qtutils is a Python library that provides some convenient features to Python applications using the PyQt5/PySide2 widget library.

qtutils 3.0 dropped support for Python 2.7, PyQt4 and PySide. If you need to use these platforms, you may use qtutils 2.3.2 or earlier.

qtutils contains the following components:

  • invoke_in_main: This provides some helper functions to interact with Qt from threads.

  • UiLoader: This provides a simplified means of promoting widgets in *.ui files to a custom widget of your choice.

  • qsettings_wrapper: A wrapper around QSettings which allows you to access keys of QSettings as instance attributes. It also performs automatic type conversions.

  • icons: An icon set as a QResource file and corresponding Python module. The resulting resource file can be used by Qt designer, and the python module imported by applications to make the icons available to them. The Fugue icon set was made by Yusuke Kamiyamane, and is licensed under a Creative Commons Attribution 3.0 License. If you can't or don't want to provide attribution, please purchase a royalty-free license from http://p.yusukekamiyamane.com/

  • Qt: a PyQt5/PySide2 agnostic interface to Qt that allows you to write software using the PyQt5 API but have it run on either PyQt5 or PySide2.

  • outputbox: a QTextEdit widget for displaying log/output text of an application, either by calling methods or by sending data to it over zeromq.

Using icons with Qt designer

To use the icons from Qt designer, clone this repository, and point Qt designer to the .qrc file for the icons set: icons/icons.qrc. Unfortunately Qt desginer saves the absolute path to this file in the resulting .ui file, so if the .ui file is later edited by someone on another system, they will see an error at startup saying the .qrc file cannot be found. This can be ignored and the .ui file will still function correctly, but Qt designer will need to be told the local path to the .qrc file before it can display the icons within its interface.

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

qtutils-3.0.0rc1.tar.gz (2.8 MB view details)

Uploaded Source

Built Distribution

qtutils-3.0.0rc1-py3-none-any.whl (7.1 MB view details)

Uploaded Python 3

File details

Details for the file qtutils-3.0.0rc1.tar.gz.

File metadata

  • Download URL: qtutils-3.0.0rc1.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for qtutils-3.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 56b8ce4de279afdc58ea86e8b74766f5055471d76283b7ffc499cdc46ff40fd7
MD5 d7ce827b7512f3bd740a848998663014
BLAKE2b-256 88135da96715707217b21ce313ac296f7af5b1742745a644a0f8dcb5d33d7f46

See more details on using hashes here.

File details

Details for the file qtutils-3.0.0rc1-py3-none-any.whl.

File metadata

  • Download URL: qtutils-3.0.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for qtutils-3.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 78c13375e2527528a1a968cd74bdfed590d73922741ad5ff3d21cace906ae591
MD5 35643efd94620b85ea62b5b0f0425f23
BLAKE2b-256 1c2796a9e571cb821505b378660e075ec6ece6085e1f6639f40521369995eb87

See more details on using hashes here.

Supported by

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