diff options
author | Eddy Pedroni <eddy@0xf7.com> | 2021-11-21 18:03:11 +0100 |
---|---|---|
committer | Eddy Pedroni <eddy@eddy.dev> | 2021-11-29 22:24:37 +0100 |
commit | 9d92121a67188995ced4aa2cc26d320475bb8c94 (patch) | |
tree | 0625499feaa11638e2df2139e87982c839b3c371 /MainWindow.py | |
parent | fa5b0f760892bcbc2548ec0e516a716bd854ceef (diff) |
Fixed some bugs, added some midi buttons
Diffstat (limited to 'MainWindow.py')
-rw-r--r-- | MainWindow.py | 21 |
1 files changed, 13 insertions, 8 deletions
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")) |