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

Method __init__

tests_mainloop/gui-qt.py:18–27  ·  view source on GitHub ↗
(self, parent=None)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls 1

connectMethod · 0.45

Tested by

no test coverage detected