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

# Qt tutorial 1.

import sys
import qt


a = qt.QApplication(sys.argv)

hello = qt.QPushButton("Hello world!", None)
hello.resize(100, 30)

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