| 13 | from PyQt4 import QtGui, QtCore |
| 14 | |
| 15 | class SimpleWindow(QtGui.QWidget): |
| 16 | def __init__(self, parent=None): |
| 17 | QtGui.QWidget.__init__(self, parent) |
| 18 | |
| 19 | self.setGeometry(300, 300, 200, 80) |
| 20 | self.setWindowTitle('Hello World') |
| 21 | |
| 22 | quit = QtGui.QPushButton('Close', self) |
| 23 | quit.setGeometry(10, 10, 60, 35) |
| 24 | |
| 25 | self.connect(quit, QtCore.SIGNAL('clicked()'), |
| 26 | self, QtCore.SLOT('close()')) |
| 27 | |
| 28 | if __name__ == '__main__': |
| 29 | app = QtCore.QCoreApplication.instance() |
no outgoing calls
no test coverage detected
searching dependent graphs…