A Python tool that makes simple GUIs simple ↦
This code:
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()
Produces this UI:
Discussion
Sign in or Join to comment or subscribe