MCPcopy
hub / github.com/alfiopuglisi/guietta

github.com/alfiopuglisi/guietta @v1.6.3 sqlite

repository ↗ · DeepWiki ↗ · release v1.6.3 ↗
404 symbols 1,451 edges 75 files 132 documented · 33%
README

guietta

A tool for making simple Python GUIs

Guietta is a tool that makes simple GUIs simple:

from guietta import _, Gui, Quit
gui = Gui(
    [ "Enter numbers:",  "__a__", "+", "__b__", ["Calculate"] ],
    [    "Result: -->", "result",   _,       _,             _ ],
    [                _,        _,   _,       _,          Quit ]
)

with gui.Calculate:
    gui.result = float(gui.a) + float(gui.b)

gui.run()

And here it is:

Example GUI

Also featuring: * matplotlib and pyqtgraph integration, for easy event-driven plots * easily display columns of data in labels using lists and dicts * multiple windows * customizable behaviour in case of exceptions * queue-like mode (a la PySimpleGUI) * integrate any QT widget seamlessly, even your custom ones (as long as it derives from QWidget, it is OK) * easy background processing for long-running operations * ordinary QT signals/slots, accepting any Python callable, if you really want to use them

Installation

pip install guietta

If you use conda, please read our page on QT incompatibilities with conda.

Install on older platforms

Guietta uses the PySide2 QT binding by default, and some systems (older Macs, Raspberry PI) do not have it available. Guietta can fallback to the PyQt5 binding if available, but does not specify it as an automatic dependency. If you get an installation error about PySide2, try to use PyQt5 instead using the following:

    pip install guietta --no-deps
    pip install pyqt5

Documentation

Stable version: https://guietta.readthedocs.io/en/stable/

Latest update from github: https://guietta.readthedocs.io/en/latest/

Tests

Documentation Status

Core symbols most depended-on inside this repo

run
called by 34
guietta/guietta.py
get
called by 21
guietta/guietta.py
events
called by 19
guietta/guietta.py
enumerate
called by 11
guietta/guietta.py
map_in_place
called by 10
guietta/guietta.py
_convert_compacts
called by 10
guietta/guietta.py
text
called by 9
guietta/guietta.py
check
called by 9
guietta/guietta.py

Shape

Method 225
Class 88
Function 86
Route 5

Languages

Python100%

Modules by API surface

guietta/guietta.py263 symbols
test/compacts_test.py11 symbols
setup.py11 symbols
guietta/guietta_pyqtgraph.py10 symbols
test/bound_method_test.py9 symbols
guietta/guietta_matplotlib.py9 symbols
docs/conf.py8 symbols
test/process_font_test.py7 symbols
test/process_slots_test.py6 symbols
test/collapse_names_test.py5 symbols
guietta/examples/timer.py5 symbols
test/test_check_string.py4 symbols

Dependencies from manifests, versioned

sphinx1.7.5 · 1×

For agents

$ claude mcp add guietta \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact