-
Notifications
You must be signed in to change notification settings - Fork 1
/
QtUI 1.0.py
148 lines (139 loc) · 8.4 KB
/
QtUI 1.0.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'SteamSuggestion.ui'
#
# Created by: PyQt5 UI code generator 5.13.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(632, 531)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayoutWidget = QtWidgets.QWidget(self.centralwidget)
self.gridLayoutWidget.setGeometry(QtCore.QRect(140, 200, 466, 159))
self.gridLayoutWidget.setObjectName("gridLayoutWidget")
self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget)
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.gridLayout.setObjectName("gridLayout")
self.comboBox_3 = QtWidgets.QComboBox(self.gridLayoutWidget)
self.comboBox_3.setObjectName("comboBox_3")
self.comboBox_3.addItem("")
self.gridLayout.addWidget(self.comboBox_3, 0, 2, 1, 1)
self.comboBox_2 = QtWidgets.QComboBox(self.gridLayoutWidget)
self.comboBox_2.setObjectName("comboBox_2")
self.comboBox_2.addItem("")
self.gridLayout.addWidget(self.comboBox_2, 0, 1, 1, 1)
self.comboBox = QtWidgets.QComboBox(self.gridLayoutWidget)
self.comboBox.setObjectName("comboBox")
self.comboBox.addItem("")
self.comboBox.addItem("")
self.comboBox.addItem("")
self.comboBox.addItem("")
self.gridLayout.addWidget(self.comboBox, 0, 0, 1, 1)
self.comboBox_5 = QtWidgets.QComboBox(self.gridLayoutWidget)
self.comboBox_5.setObjectName("comboBox_5")
self.comboBox_5.addItem("")
self.gridLayout.addWidget(self.comboBox_5, 1, 1, 1, 1)
self.comboBox_6 = QtWidgets.QComboBox(self.gridLayoutWidget)
self.comboBox_6.setObjectName("comboBox_6")
self.comboBox_6.addItem("")
self.gridLayout.addWidget(self.comboBox_6, 1, 2, 1, 1)
self.comboBox_4 = QtWidgets.QComboBox(self.gridLayoutWidget)
self.comboBox_4.setObjectName("comboBox_4")
self.comboBox_4.addItem("")
self.gridLayout.addWidget(self.comboBox_4, 1, 0, 1, 1)
self.buttonBox = QtWidgets.QDialogButtonBox(self.centralwidget)
self.buttonBox.setGeometry(QtCore.QRect(430, 440, 164, 32))
font = QtGui.QFont()
font.setBold(True)
font.setItalic(False)
font.setUnderline(False)
font.setWeight(75)
font.setStrikeOut(False)
font.setKerning(True)
self.buttonBox.setFont(font)
self.buttonBox.setMouseTracking(False)
self.buttonBox.setFocusPolicy(QtCore.Qt.NoFocus)
self.buttonBox.setAcceptDrops(False)
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Apply|QtWidgets.QDialogButtonBox.Reset)
self.buttonBox.setObjectName("buttonBox")
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setGeometry(QtCore.QRect(10, 270, 111, 16))
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label.setFont(font)
self.label.setObjectName("label")
self.label_2 = QtWidgets.QLabel(self.centralwidget)
self.label_2.setGeometry(QtCore.QRect(20, 390, 111, 20))
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label_2.setFont(font)
self.label_2.setObjectName("label_2")
self.textBrowser = QtWidgets.QTextBrowser(self.centralwidget)
self.textBrowser.setGeometry(QtCore.QRect(20, 30, 591, 161))
self.textBrowser.setObjectName("textBrowser")
self.horizontalLayoutWidget = QtWidgets.QWidget(self.centralwidget)
self.horizontalLayoutWidget.setGeometry(QtCore.QRect(150, 380, 431, 41))
self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.pushButton_6 = QtWidgets.QPushButton(self.horizontalLayoutWidget)
self.pushButton_6.setObjectName("pushButton_6")
self.horizontalLayout.addWidget(self.pushButton_6)
self.pushButton_5 = QtWidgets.QPushButton(self.horizontalLayoutWidget)
self.pushButton_5.setObjectName("pushButton_5")
self.horizontalLayout.addWidget(self.pushButton_5)
self.pushButton_4 = QtWidgets.QPushButton(self.horizontalLayoutWidget)
self.pushButton_4.setObjectName("pushButton_4")
self.horizontalLayout.addWidget(self.pushButton_4)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 632, 22))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.comboBox_3.setItemText(0, _translate("MainWindow", "Categories"))
self.comboBox_2.setItemText(0, _translate("MainWindow", "Publisher"))
self.comboBox.setItemText(0, _translate("MainWindow", "Platforms"))
self.comboBox.setItemText(1, _translate("MainWindow", "Windows"))
self.comboBox.setItemText(2, _translate("MainWindow", "MacOS"))
self.comboBox.setItemText(3, _translate("MainWindow", "Linux"))
self.comboBox_5.setItemText(0, _translate("MainWindow", "Required Age"))
self.comboBox_6.setItemText(0, _translate("MainWindow", "Steam Tag"))
self.comboBox_4.setItemText(0, _translate("MainWindow", "Years"))
self.label.setText(_translate("MainWindow", "Filter Attributes:"))
self.label_2.setText(_translate("MainWindow", "Show Result by:"))
self.textBrowser.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'.AppleSystemUIFont\'; font-size:13pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:18pt; font-weight:600;\">Welcome to SteamSuggestion!</span></p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:18pt;\"><br /></p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">This is the Filter to help you choose Steam Games which is you may love!</p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" color:#fc0107;\">Step 1</span>: Select some game attributes to help you filter more than 27,000 steam game such as Platforms, Publisher etc.</p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" color:#fc0107;\">Step 2</span>: Select a keyword to sort all of fit games </p></body></html>"))
self.pushButton_6.setText(_translate("MainWindow", "Owner number"))
self.pushButton_5.setText(_translate("MainWindow", "Positive rating"))
self.pushButton_4.setText(_translate("MainWindow", "Price"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())