32

Guietta — Python module to create simple GUIs

 3 years ago
source link: https://github.com/alfiopuglisi/guietta
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

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:

FzYvqyi.png!web

Installation

pip install guietta

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

Documentation

https://guietta.readthedocs.io/en/latest/


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK