Source

ttgui / test.py

Full commit
from tgui import TApplication, TWidget, TLabel, TPoint, TSize, TPushButton


app = TApplication()
app.desktop().show()
win = TWidget()
win.move(TPoint(5, 5))
win.resize(TSize(60, 15))
l = TLabel(win)
l.setText("Hello, world")
l.move(TPoint(2,2))
b = TPushButton(win, "OK")
b.move(TPoint(4,4))
win.show()

app.run()
##while app.event_loop.processEvent():
##    pass
##app.desktop().console.getchar(wait=True)
#app.desktop().console.close()