Automatic Qt parameter entry widgets using function signatures
Project description
Automatic Qt parameter entry widgets using function signatures
Install using pip: pip install qtap
Basic usage:
from PyQt5 import QtWidgets
from qtap import Functions
from pyqtgraph.console import ConsoleWidget
def func_A(a: int = 1, b: float = 3.14, c: str = 'yay', d: bool = True):
pass
def func_B(x: float = 50, y: int = 2.7, u: str = 'bah'):
pass
if __name__ == '__main__':
app = QtWidgets.QApplication([])
# just pass your functions as a list, that's it!
functions = Functions([func_A, func_B])
console = ConsoleWidget(parent=functions, namespace={'this': functions})
functions.main_layout.addWidget(console)
functions.show()
app.exec()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qtap-0.1.2.tar.gz
(5.9 kB
view details)
Built Distribution
qtap-0.1.2-py3-none-any.whl
(19.4 kB
view details)
File details
Details for the file qtap-0.1.2.tar.gz
.
File metadata
- Download URL: qtap-0.1.2.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32a7404f042b1f6868e582c2871787899f626daa6e840b4471b87aa531aaa148 |
|
MD5 | 73106fc35345ac5a2a48bc2d1d442b17 |
|
BLAKE2b-256 | 4c0a734b0e6587b926630643bbbe9b29c4e6966e47583c2166b074c10377c9dc |
File details
Details for the file qtap-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: qtap-0.1.2-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8df9e176c7a497c5c34043d9ff3f33b4fc51c5761bee53127de6e00cb0a894d |
|
MD5 | ee2ccb0fcafc53e6af08fa4dd5ac6ce8 |
|
BLAKE2b-256 | 1f3473011418c2847e506ab16716acccaa78d65bc2faea8df07bd38e42668cf0 |