コード例 #1
0
    def __init__(self, parent=None):
        super(MyFirstWindow, self).__init__(parent)

        layout = QtWidgets.QVBoxLayout()
        button = QtWidgets.QPushButton('Button')

        layout.addWidget(button)

        self.setLayout(layout)

        self.ui = MainForm.Ui_MainWindow()
        self.ui.setupUi(self)
        self.ui.pushButton_open.clicked.connect(
            self.on_push_button_open_clicked)
        self.ui.pushButton_Accept.clicked.connect(
            self.on_push_button_accept_clicked)
コード例 #2
0
ファイル: main.py プロジェクト: kbowner/PyQt_Prg
    idaaDlg.exec_()


def pushButton8_Clicked():
    PDASchema = myUI.comboBox1.currentText().upper()
    PDAView = myUI.comboBox2.currentText().upper()
    bmsiw_schema, bmsiw_view = MainFormLogic.get_legacy_view_name(
        PDASchema, PDAView)
    idaa_view_statement = idaa_logic.get_bmsiw_view_body(
        bmsiw_schema, bmsiw_view)


if __name__ == '__main__':
    myapp = QApplication(sys.argv)
    myWin = QMainWindow()
    myUI = MainForm.Ui_MainWindow()
    myUI.setupUi(myWin)
    myUI.pushButton.clicked.connect(pushButton_Clicked)
    myUI.pushButton_2.clicked.connect(pushButton2_Clicked)
    myUI.pushButton_3.clicked.connect(pushButton3_Clicked)
    myUI.pushButton_6.clicked.connect(pushButton6_Clicked)
    myUI.comboBox1.currentTextChanged.connect(comboBox1_changed)
    myUI.comboBox2.currentTextChanged.connect(comboBox2_changed)
    myUI.pushButton_7.clicked.connect(delete_selected_rows)
    myUI.pushButton_4.clicked.connect(pushButton4_Clicked)
    myUI.pushButton_8.clicked.connect(pushButton8_Clicked)
    myUI.actionProgram_preference.triggered.connect(Program_preference_open)
    myUI.actionDeleteRow.triggered.connect(show_menu)
    myWin.show()
    sys.exit(myapp.exec_())