4 ms·
Based on the very limited documentation it seems to follow a similar approach to PySinpleGUI https://github.com/PySimpleGUI/PySimpleGUI https://github.com/PySim
by galacticdessert 6y ago
Based on the very limited documentation it seems to follow a similar approach to PySinpleGUI https://github.com/PySimpleGUI/PySimpleGUI https://github.com/PySimpleGUI/PySimpleGUI
PySimpleGUI is indeed simple and quick, not very elegant but useful for small utilities.
- alfiopuglisi 6y agoYes, I was inspired by PySimpleGUI (and say as much in the introduction: https://guietta.readthedocs.io/en/latest/intro.html https://guietta.readthedocs.io/en/latest/intro.html ). But I felt that PySimpleGUI did not go far enough in making things simple. It also supports multiple backends, so that may be a reason to keep things more structured. Guietta is just a thin wrapper over QT.
- sradman 6y agoWell done. Both Guietta and PySimpleGUI surprised me by implementing an Internal DSL for Python. Both leverage Python's List literals to define a GUI grid layout. PySimpleGUI uses nested Lists to define the grid with a .WidgetType() style method used in each slot. Guietta starts with a Builder Factory method with List literal varargs (one List arg per grid row). Instead of .WidgetType() wrappers, Guietta infers widget type based on List element type and string formatting rules. The resulting column aligned code has the visual look and feel of a grid/table and makes it very readable. The choice of Qt-only seems reasonable. There is probably a category of DSLs that try to mimic a grid/table layout rather than a natural language DSL (many Ruby style Internal DSLs). This is definitely the style I use for SQL DDL, using a strict grid-like layout for the column constraints and moving the verbose parts (like CHECK constraints) to the table constraints section at the end.
- app4soft 6y ago> Guietta is just a thin wrapper over QT. So, any pro'n'cons in comparison to PyQt?
- dr_zoidberg 6y agoNot the author, but I assume the one big pro is being a lot simpler, and the one big con is that it limits the flexibility of the full QT bindings. All in all, it's a wrapper that hides complexity and flexibility from you. Might be what you need some times.