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.1.tar.gz
(5.7 kB
view hashes)
Built Distribution
qtap-0.1.1-py3-none-any.whl
(19.1 kB
view hashes)