Beispiel #1
0
class TestWindow(QtGui.QMainWindow):

    def __init__(self, parent=None):
        super(TestWindow, self).__init__(parent)
        self._ui = Ui_TestMainWindow()
        self._ui.setupUi(self)

        self._ui.button.pressed.connect(self._btnPressed)

    def _btnPressed(self):
        QtGui.QMessageBox.information(self, 'Hello World!', 'Hello World!', QtGui.QMessageBox.Ok)
        self._ui.statusbar.showMessage("You pressed the button!")
Beispiel #2
0
    def __init__(self, parent=None):
        super(TestWindow, self).__init__(parent)
        self._ui = Ui_TestMainWindow()
        self._ui.setupUi(self)

        self._ui.button.pressed.connect(self._btnPressed)