MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / SimpleWindow

Class SimpleWindow

tests_mainloop/gui-qt.py:17–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 from PyQt4 import QtGui, QtCore
16
17 class SimpleWindow(QtGui.QWidget):
18 def __init__(self, parent=None):
19 QtGui.QWidget.__init__(self, parent)
20
21 self.setGeometry(300, 300, 200, 80)
22 self.setWindowTitle("Hello World")
23
24 quit = QtGui.QPushButton("Close", self)
25 quit.setGeometry(10, 10, 60, 35)
26
27 self.connect(quit, QtCore.SIGNAL("clicked()"), self, QtCore.SLOT("close()"))
28
29 if __name__ == "__main__":
30 app = QtCore.QCoreApplication.instance()

Callers 1

gui-qt.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected