-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui_optionsWindow.py
85 lines (77 loc) · 4.37 KB
/
ui_optionsWindow.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui/options.ui'
#
# Created by: PyQt5 UI code generator 5.15.7
#
# 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.
import sys
import os
from PyQt5 import QtCore, QtGui, QtWidgets
def resource_path(relative_path):
""" Get absolute path to resource, works for dev and for PyInstaller """
base_path = getattr(sys, "_MEIPASS", os.path.dirname(os.path.abspath(__file__)));
return os.path.join(base_path, relative_path);
class Ui_optionsWindow(object):
def setupUi(self, optionsWindow):
optionsWindow.setObjectName("optionsWindow")
optionsWindow.setWindowModality(QtCore.Qt.ApplicationModal)
optionsWindow.resize(191, 111)
optionsWindow.setMinimumSize(QtCore.QSize(191, 111))
optionsWindow.setMaximumSize(QtCore.QSize(191, 111))
self.layoutWidget = QtWidgets.QWidget(optionsWindow)
self.layoutWidget.setGeometry(QtCore.QRect(10, 10, 171, 54))
self.layoutWidget.setObjectName("layoutWidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.layoutWidget)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.themeLabel = QtWidgets.QLabel(self.layoutWidget)
self.themeLabel.setObjectName("themeLabel")
self.horizontalLayout_2.addWidget(self.themeLabel)
self.themeBox = QtWidgets.QComboBox(self.layoutWidget)
self.themeBox.setMinimumSize(QtCore.QSize(71, 21))
self.themeBox.setMaximumSize(QtCore.QSize(71, 21))
self.themeBox.setObjectName("themeBox")
self.themeBox.addItem("")
self.themeBox.addItem("")
self.horizontalLayout_2.addWidget(self.themeBox)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.langLabel = QtWidgets.QLabel(self.layoutWidget)
self.langLabel.setObjectName("langLabel")
self.horizontalLayout.addWidget(self.langLabel)
self.langBox = QtWidgets.QComboBox(self.layoutWidget)
self.langBox.setMinimumSize(QtCore.QSize(71, 21))
self.langBox.setMaximumSize(QtCore.QSize(71, 21))
self.langBox.setObjectName("langBox")
self.langBox.addItem("")
self.langBox.addItem("")
self.langBox.addItem("")
self.horizontalLayout.addWidget(self.langBox)
self.verticalLayout.addLayout(self.horizontalLayout)
self.cancel = QtWidgets.QPushButton(optionsWindow)
self.cancel.setGeometry(QtCore.QRect(100, 80, 71, 23))
self.cancel.setObjectName("cancel")
self.accept = QtWidgets.QPushButton(optionsWindow)
self.accept.setGeometry(QtCore.QRect(20, 80, 71, 23))
self.accept.setObjectName("accept")
self.themeLabel.setBuddy(self.themeBox)
self.langLabel.setBuddy(self.themeBox)
self.retranslateUi(optionsWindow)
self.cancel.clicked.connect(optionsWindow.close) # type: ignore
QtCore.QMetaObject.connectSlotsByName(optionsWindow)
def retranslateUi(self, optionsWindow):
_translate = QtCore.QCoreApplication.translate
optionsWindow.setWindowTitle(_translate("optionsWindow", "Options"))
self.themeLabel.setText(_translate("optionsWindow", "<html><head/><body><p><span style=\" font-size:10pt; font-weight:600;\">Theme:</span></p></body></html>"))
self.themeBox.setItemText(0, _translate("optionsWindow", "Dark"))
self.themeBox.setItemText(1, _translate("optionsWindow", "Light"))
self.langLabel.setText(_translate("optionsWindow", "<html><head/><body><p><span style=\" font-size:10pt; font-weight:600;\">Language:</span></p></body></html>"))
self.langBox.setItemText(0, _translate("optionsWindow", "English"))
self.langBox.setItemText(1, _translate("optionsWindow", "German"))
self.langBox.setItemText(2, _translate("optionsWindow", "French"))
self.cancel.setText(_translate("optionsWindow", "Cancel"))
self.accept.setText(_translate("optionsWindow", "Accept"))