コード例 #1
0
ファイル: test.py プロジェクト: jamiehayes/test
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!")
コード例 #2
0
ファイル: test.py プロジェクト: jamiehayes/test
    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)