blob: 3bb4ab48b481c6549f328966cbf47c97e74a76d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/usr/bin/python
import sys
from PySide.QtGui import QMainWindow, QApplication
from bouton_qt import Ui_MainWindow
class MainWindow(QMainWindow, Ui_MainWindow):
def __init__(self, parent=None):
super(MainWindow, self).__init__(parent)
self.setupUi(self)
self.pushButton.clicked.connect(self.le_bouton)
def le_bouton(self):
print "bouton !"
def main():
app = QApplication(sys.argv)
try:
frame = MainWindow()
frame.show()
app.exec_()
finally:
print "byebye"
main()
|