skip to navigation
skip to content

formlayout 1.1.0

The most easy way to create Qt form dialogs and widgets with Python

Package Documentation

With formlayout, generating a form is very easy:
  • To show a dialog box, just call the fedit function.
  • To set-up the form dialog, simply use lists to pass parameters (field names, default values, …).
  • To embedd formlayout in your own library, just copy the formlayout autoconsistent single script (zero dependency, except Qt itself).

Here is a simple example (more are included in source package):

from formlayout import fedit
datalist = [('Name', 'Paul'),
            (None, None),
            (None, 'Information:'),
            ('Age', 30),
            ('Sex', [0, 'Male', 'Female']),
            ('Size', 12.1),
            ('Eyes', 'green'),
            ('Married', True),
            ]
fedit(datalist, title="Describe yourself", comment="This is just an <b>example</b>.")

This shows the following dialog box:

 
File Type Py Version Uploaded on Size
formlayout-1.1.0-py2.py3-none-any.whl (md5) Python Wheel 2.7 2015-11-15 8KB
formlayout-1.1.0.zip (md5) Source 2015-11-15 9KB