Hassle free PySide forms.
from psforms import (Form, IntField, StringField, StringOptionField, BoolField) class MyForm(Form): '''My amazing form, useful in many scenarios.''' title = 'My Form' int_field = IntField('Integer Value') str_field = StringOptionField('String Value', options=['A', 'B', 'C']) bool_field = BoolField('Boolean Value') strb_field = StringField('String Value B') myform_dialog = MyForm.as_dialog() if myform_dialog.exec_(): print dialog.get_value()
- Easy Form creation
- Parent forms to your own window or use them as their own stand alone dialog
- Unified api for all standard PySide input widgets
You can install psforms using pip:
pip install psforms
or you can use setuptools:
git clone git@github.com/danbradham/psforms.git cd psforms python setup.py install
For more information visit the docs.