summaryrefslogtreecommitdiffstats
path: root/python/pyqt/examples2/tut1.py
blob: 2eca8c5d331efdb20868ad62834f469ddb4fa4d3 (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
from qt import *


a = QApplication(sys.argv)

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

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