Add preferences window

This commit is contained in:
Ninnjah 2020-10-28 00:41:26 +03:00 committed by GitHub
parent 3c30a81585
commit 49ae4c053b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

104
ui_preferences.py Normal file
View file

@ -0,0 +1,104 @@
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'preferences.ui'
#
# Created by: PyQt5 UI code generator 5.15.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(420, 468)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
MainWindow.setSizePolicy(sizePolicy)
MainWindow.setMinimumSize(QtCore.QSize(420, 468))
MainWindow.setMaximumSize(QtCore.QSize(420, 468))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("icon.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
MainWindow.setWindowIcon(icon)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
self.tabWidget.setGeometry(QtCore.QRect(0, 0, 421, 461))
self.tabWidget.setObjectName("tabWidget")
self.Keys = QtWidgets.QWidget()
self.Keys.setObjectName("Keys")
self.gridLayoutWidget = QtWidgets.QWidget(self.Keys)
self.gridLayoutWidget.setGeometry(QtCore.QRect(10, 10, 391, 271))
self.gridLayoutWidget.setObjectName("gridLayoutWidget")
self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget)
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.gridLayout.setHorizontalSpacing(6)
self.gridLayout.setObjectName("gridLayout")
self.label = QtWidgets.QLabel(self.gridLayoutWidget)
self.label.setObjectName("label")
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
self.select_move_down = QtWidgets.QPushButton(self.gridLayoutWidget)
self.select_move_down.setObjectName("select_move_down")
self.gridLayout.addWidget(self.select_move_down, 1, 1, 1, 1)
self.label_2 = QtWidgets.QLabel(self.gridLayoutWidget)
self.label_2.setObjectName("label_2")
self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
self.label_5 = QtWidgets.QLabel(self.gridLayoutWidget)
self.label_5.setObjectName("label_5")
self.gridLayout.addWidget(self.label_5, 4, 0, 1, 1)
self.select_move_up = QtWidgets.QPushButton(self.gridLayoutWidget)
self.select_move_up.setObjectName("select_move_up")
self.gridLayout.addWidget(self.select_move_up, 0, 1, 1, 1)
self.label_4 = QtWidgets.QLabel(self.gridLayoutWidget)
self.label_4.setObjectName("label_4")
self.gridLayout.addWidget(self.label_4, 3, 0, 1, 1)
self.label_3 = QtWidgets.QLabel(self.gridLayoutWidget)
self.label_3.setObjectName("label_3")
self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
self.label_6 = QtWidgets.QLabel(self.gridLayoutWidget)
self.label_6.setObjectName("label_6")
self.gridLayout.addWidget(self.label_6, 5, 0, 1, 1)
self.select_move_left = QtWidgets.QPushButton(self.gridLayoutWidget)
self.select_move_left.setObjectName("select_move_left")
self.gridLayout.addWidget(self.select_move_left, 2, 1, 1, 1)
self.select_move_right = QtWidgets.QPushButton(self.gridLayoutWidget)
self.select_move_right.setObjectName("select_move_right")
self.gridLayout.addWidget(self.select_move_right, 3, 1, 1, 1)
self.play_sound = QtWidgets.QPushButton(self.gridLayoutWidget)
self.play_sound.setObjectName("play_sound")
self.gridLayout.addWidget(self.play_sound, 4, 1, 1, 1)
self.stop_sound = QtWidgets.QPushButton(self.gridLayoutWidget)
self.stop_sound.setObjectName("stop_sound")
self.gridLayout.addWidget(self.stop_sound, 5, 1, 1, 1)
self.tabWidget.addTab(self.Keys, "")
self.tab_2 = QtWidgets.QWidget()
self.tab_2.setObjectName("tab_2")
self.tabWidget.addTab(self.tab_2, "")
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
self.tabWidget.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.label.setText(_translate("MainWindow", "Overlay menu up"))
self.select_move_down.setText(_translate("MainWindow", "PushButton"))
self.label_2.setText(_translate("MainWindow", "Overlay menu down"))
self.label_5.setText(_translate("MainWindow", "Overlay play sound"))
self.select_move_up.setText(_translate("MainWindow", "PushButton"))
self.label_4.setText(_translate("MainWindow", "Overlay menu right"))
self.label_3.setText(_translate("MainWindow", "Overlay menu left"))
self.label_6.setText(_translate("MainWindow", "Overlay stop sound"))
self.select_move_left.setText(_translate("MainWindow", "PushButton"))
self.select_move_right.setText(_translate("MainWindow", "PushButton"))
self.play_sound.setText(_translate("MainWindow", "PushButton"))
self.stop_sound.setText(_translate("MainWindow", "PushButton"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.Keys), _translate("MainWindow", "Tab 1"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "Tab 2"))