Skip to main content

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

Project description

https://raw.githubusercontent.com/PierreRaybaut/formlayout/master/doc/images/advanced1.png https://raw.githubusercontent.com/PierreRaybaut/formlayout/master/doc/images/advanced2.png https://raw.githubusercontent.com/PierreRaybaut/formlayout/master/doc/images/advanced3.png
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:

https://raw.githubusercontent.com/PierreRaybaut/formlayout/master/doc/images/simple.png

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for formlayout, version 1.2.0
Filename, size File type Python version Upload date Hashes
Filename, size formlayout-1.2.0-py2.py3-none-any.whl (13.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size formlayout-1.2.0.tar.gz (79.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page