New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

formlayout

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formlayout

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

  • 1.2.0
  • PyPI
  • Socket score

Maintainers
1

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

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc