Skip to main content

Utilities for small or throwaway PyQt5 applications

Project description

UQtie

Utilities for Qt

A small set of features to make it easier to use PyQt5. Implements a repetive pattern for quickly building throwaway or small Qt applications. Features include Font Selection, Zoom In/Out, and geometry persistence.

Getting Started

Prerequisites

  • PyQt5 is obviously required.

The uqtie distribution package does not name PyQt5 as a dependency because you may have already installed it in some custom way, and you don't want the uqtie installation process to create a redundant PyQt5 installation.

If you don't already have it, you can install PyQt5 by doing this:

pip install pyqt5

Be aware that the appropriate installation procedure for a package can vary depending on your OS and other factors.

Installing uqtie

Install the package:

pip install uqtie

Or clone from GitHub:

git clone https://github.com/langrind/uqtie.git

and then run the setup script:

python setup.py

To show uqtie in action, run simple_uqtie.py. It's a do-nothing app, the lets you select the font from the File menu, or zoom via the View menu. It's copied in your $PATH when you install the UQtie package.

Tests

There are no tests yet, beyond running simple_uqtie.py.

Deployment

TBS: details about usage in different OS environments

Using UQtie

Module Name Purpose
UqtMav UqtMavConn allows easy use of pymavlink connections in Qt app
UqtWin MainWindow class provides an app main window with features
UqtStylesheet Allows app to maintain a QSS file with variable properties -
a "poor man's SASS"

You can view the source of simple_uqtie.py in the example/ subdirectory of the repo.

There are three items of note:

  1. Import the UqtWin module:
    
    from   uqtie import UqtWin
    
  2. Define a subclass of MainWindow
    
    class TestAppMainWindow(UqtWin.MainWindow):
        def __init__(self, parsedArgs, **kwargs ):
            super(TestAppMainWindow, self).__init__(parsedArgs, **kwargs)
    
  3. Instantiate the subclass
    
    # can add optional title='<OptionalTitle>' if it is different from your app name
    mainw = TestAppMainWindow(parsedArgs, app=app, organizationName='Craton', appName='UqtTest')
    

For more info, RTFD.

Contributing

This project is ad hoc in nature, so I don't foresee contributions. Nevertheless, feel free to make a pull request.

Versioning

Versions are assigned in accordance with Semantic Versioning. For the versions available, see the tags on this repository.

Pronunciation

  • "uqtie" is pronounced You Cutie :heart_eyes:
  • "Uqt", used as a prefix in the code, rhymes with "duct"

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

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

uqtie-0.1.2.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

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

uqtie-0.1.2-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file uqtie-0.1.2.tar.gz.

File metadata

  • Download URL: uqtie-0.1.2.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for uqtie-0.1.2.tar.gz
Algorithm Hash digest
SHA256 156eb74d8ab2ae22ba1df1ce8b0ffe1895211080631ba812d70fb7480917f25e
MD5 71670e16838d4afa01b334df24a5459a
BLAKE2b-256 41bd8f6431cfb8837cf46ac9f3ba1c2c07dc3a08f79c120be9eaa19abf3410c5

See more details on using hashes here.

File details

Details for the file uqtie-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: uqtie-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for uqtie-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0afcdb8310b09ada76c24ab12c84503abe56e1e7178289d02d62f35b49cdba9f
MD5 95b87950102b22bbe9dd3ca1a1d06082
BLAKE2b-256 4a91d731a0cfb0824adf71ef8d3b180e86081e0e5ff734227b32640273207f77

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