argparseqt
An easy way to make Qt GUIs using the argparse standard module
Installation
Via pip:
pip install argparseqt
From source:
git clone https://github.com/domstoppable/argparseqt.git
cd argparseqt.git
python setup.py install
Dependencies
Requires:
- qtpy
- Qt bindings for Python (either
PySide2,PyQt5,PySide, orPyQt)
Usage
Quick start
import argparse
import argparseqt.gui
parser = argparse.ArgumentParser(description='Main settings')
parser.add_argument('--storeConst', action='store_const', const=999)
textSettings = parser.add_argument_group('Strings', description='Text input')
textSettings.add_argument('--freetext', type=str, default='Enter freetext here', help='Type anything you want here')
textSettings.add_argument('--pickText', default='I choo-choo-choose you', choices=['Bee mine', 'I choo-choo-choose you'], help='Choose one of these')
app = QtWidgets.QApplication()
dialog = argparseqt.gui.ArgDialog(parser)
dialog.exec_()
if dialog.result() == QtWidgets.QDialog.Accepted:
values = dialog.getValues()
print('Values:', values)
else:
print('User cancelled')
See example.py for more.
Metadata
Release files for argparseqt 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| argparseqt-0.3.4.tar.gz | 8.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| argparseqt-0.3.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.1 kB
Release files / argparseqt-0.3.4.tar.gz
| Download URL | argparseqt-0.3.4.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61873ba72a0efe2d43b608ff2938df8d018f56e0e63ea21e620e611823501fc1
|
|
BLAKE2b-256 checksum How to use checksums |
d16a77aed76f897b56a8622acdf5fb440f919e212aafc9ad0cb0b993148c1dc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.2
|
Release files / argparseqt-0.3.4-py3-none-any.whl
| Download URL | argparseqt-0.3.4-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb5d5b180389e4c94dea068ac0f55af53ed8d753b2b115a15b9f7d7b0b06831c
|
|
BLAKE2b-256 checksum How to use checksums |
e39637210b25041cbf9daf1dd066a0e56e265576d0d860244c3bd47e6a6c38d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.2
|
Security for argparseqt 0.3.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.