Skip to main content

Python GUI toolkit

Project description

The light Python GUI builder (currently based on PyQt6)

Simplifying the creation of common GUI applications

Description

q2gui is a lightweight Python GUI builder designed to simplify the creation of desktop applications using PyQt6. It provides a high-level API for building forms, menus, toolbars, tabbed interfaces, and various widgets with minimal code. Features include:

  • Dynamic menu and toolbar creation with shortcuts and icons
  • Form builder supporting labels, inputs, combo boxes, radio buttons, checkboxes, date/time pickers, and more
  • Tabbed and split layouts, frames, and groupings
  • Sheet/grid controls with customizable headers, sizes, and actions
  • Built-in support for color modes (light/dark)
  • Status bar, tool buttons, and message dialogs
  • Easy event handling and validation logic
  • Demo applications showcasing usage patterns

How to start

With PyPI package:

poetry new project_01 && cd project_01 && poetry shell
poetry add q2gui
cd project_01
python -m q2gui > example_app.py && python example_app.py

Explore sources:

git clone https://github.com/AndreiPuchko/q2gui.git
cd q2gui
pip3 install poetry
poetry shell
poetry install
python3 demo/demo_00.py     # All demo launcher
python3 demo/demo_01.py     # basic: main menu, form & widgets
python3 demo/demo_02.py     # forms and forms in form
python3 demo/demo_03.py     # grid form (CSV data), automatic creation of forms based on data
python3 demo/demo_04.py     # progressbar, data loading, sorting and filtering
python3 demo/demo_05.py     # nonmodal form
python3 demo/demo_06.py     # code editor
python3 demo/demo_07.py     # database app (4 tables, mock data loading) - requires a q2db package
python3 demo/demo_08.py     # database app, requires a q2db package, autoschema

demo/demo_07.py screenshot

======= Alt text

Build standalone executable

(The resulting executable file will appear in the folder dist/)

One file

pyinstaller -F demo/demo.py

One directory

pyinstaller -D demo/demo.py

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

q2gui-0.1.210.tar.gz (93.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

q2gui-0.1.210-py3-none-any.whl (130.6 kB view details)

Uploaded Python 3

File details

Details for the file q2gui-0.1.210.tar.gz.

File metadata

  • Download URL: q2gui-0.1.210.tar.gz
  • Upload date:
  • Size: 93.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.11.7 Windows/10

File hashes

Hashes for q2gui-0.1.210.tar.gz
Algorithm Hash digest
SHA256 039e31835719c9898d36a39ac10232260b9345881d1f70510b951ddaf48f1328
MD5 37697b72b2705fa90e5919076935c42d
BLAKE2b-256 b78c65b810ff8afa5bc80937ec1ce3d8422f50c2fd68a0de7e79e6a3939e6487

See more details on using hashes here.

File details

Details for the file q2gui-0.1.210-py3-none-any.whl.

File metadata

  • Download URL: q2gui-0.1.210-py3-none-any.whl
  • Upload date:
  • Size: 130.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.11.7 Windows/10

File hashes

Hashes for q2gui-0.1.210-py3-none-any.whl
Algorithm Hash digest
SHA256 4e878a7141eaef0427d46e42e14e7cbff311a23854cb9cca7d1bbc7b7f5774a0
MD5 628f8b1bad73180a72c5df0644ddbbb5
BLAKE2b-256 fb78779ff4cb7665dc9f5b2bd789da773be9ae020ad07f5b6f4e71ce85c62ae4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page