summaryrefslogtreecommitdiffstats
path: root/examples/tut1.py
blob: 0f3d9a1fadc80b819124f2f699f62f0146cf9a41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python

# TQt tutorial 1.

import sys
from PyTQt import tqt


a = tqt.TQApplication(sys.argv)

hello = tqt.TQPushButton("Hello world!", None)
hello.resize(100, 30)

a.setMainWidget(hello)
hello.show()
sys.exit(a.exec_loop())