From 9d92121a67188995ced4aa2cc26d320475bb8c94 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Sun, 21 Nov 2021 18:03:11 +0100 Subject: Fixed some bugs, added some midi buttons --- MainWindow.py | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'MainWindow.py') diff --git a/MainWindow.py b/MainWindow.py index 9194943..531d905 100644 --- a/MainWindow.py +++ b/MainWindow.py @@ -45,12 +45,15 @@ class Ui_MainWindow(object): self.horizontalLayout.addWidget(self.abListView) self.formLayout = QtWidgets.QFormLayout() self.formLayout.setObjectName("formLayout") - self.playPauseButton = QtWidgets.QPushButton(self.centralwidget) - self.playPauseButton.setObjectName("playPauseButton") - self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.playPauseButton) + self.playButton = QtWidgets.QPushButton(self.centralwidget) + self.playButton.setObjectName("playButton") + self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.playButton) + self.pauseButton = QtWidgets.QPushButton(self.centralwidget) + self.pauseButton.setObjectName("pauseButton") + self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.pauseButton) self.saveAbButton = QtWidgets.QPushButton(self.centralwidget) self.saveAbButton.setObjectName("saveAbButton") - self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.saveAbButton) + self.formLayout.setWidget(9, QtWidgets.QFormLayout.FieldRole, self.saveAbButton) self.saveSessionButton = QtWidgets.QPushButton(self.centralwidget) self.saveSessionButton.setObjectName("saveSessionButton") self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.saveSessionButton) @@ -63,12 +66,13 @@ class Ui_MainWindow(object): self.initMidiButton = QtWidgets.QPushButton(self.centralwidget) self.initMidiButton.setObjectName("initMidiButton") self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.initMidiButton) + self.addSongButton = QtWidgets.QPushButton(self.centralwidget) + self.addSongButton.setObjectName("addSongButton") + self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.addSongButton) self.horizontalLayout.addLayout(self.formLayout) self.verticalLayout.addLayout(self.horizontalLayout) self.centralWidgetLayout.addLayout(self.verticalLayout) MainWindow.setCentralWidget(self.centralwidget) - self.addSongAction = QtWidgets.QAction(MainWindow) - self.addSongAction.setObjectName("addSongAction") self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) @@ -76,10 +80,11 @@ class Ui_MainWindow(object): def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) - self.playPauseButton.setText(_translate("MainWindow", "Play/pause")) + self.playButton.setText(_translate("MainWindow", "Play")) + self.pauseButton.setText(_translate("MainWindow", "Pause")) self.saveAbButton.setText(_translate("MainWindow", "Save AB")) self.saveSessionButton.setText(_translate("MainWindow", "Save session")) self.loadSessionButton.setText(_translate("MainWindow", "Load session")) self.abRepeatButton.setText(_translate("MainWindow", "AB repeat")) self.initMidiButton.setText(_translate("MainWindow", "Connect MIDI")) - self.addSongAction.setText(_translate("MainWindow", "Add song")) + self.addSongButton.setText(_translate("MainWindow", "Add song")) -- cgit v1.2.3