# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'C:\Users\lukas\Desktop\Dump\02_Python\steam-Trace\UX.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # 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_Main(object): def setupUi(self, Main): Main.setObjectName("Main") Main.resize(800, 700) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/rsc/rsc/favicon_io/favicon.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off) Main.setWindowIcon(icon) Main.setStyleSheet("") self.centralwidget = QtWidgets.QWidget(Main) self.centralwidget.setObjectName("centralwidget") self.frameHead = QtWidgets.QFrame(self.centralwidget) self.frameHead.setGeometry(QtCore.QRect(0, 0, 801, 41)) self.frameHead.setStyleSheet(".QFrame { \n" "background-color: rgb(240, 240, 240)\n" "}") self.frameHead.setFrameShape(QtWidgets.QFrame.StyledPanel) self.frameHead.setFrameShadow(QtWidgets.QFrame.Raised) self.frameHead.setObjectName("frameHead") self.btnExit = QtWidgets.QPushButton(self.frameHead) self.btnExit.setGeometry(QtCore.QRect(760, 5, 30, 30)) self.btnExit.setText("") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/rsc/rsc/Very-Basic-Cancel-icon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btnExit.setIcon(icon1) self.btnExit.setIconSize(QtCore.QSize(30, 30)) self.btnExit.setFlat(True) self.btnExit.setObjectName("btnExit") self.lblChromedriverStatus = QtWidgets.QLabel(self.frameHead) self.lblChromedriverStatus.setGeometry(QtCore.QRect(280, 10, 71, 16)) self.lblChromedriverStatus.setObjectName("lblChromedriverStatus") self.lblLogo = QtWidgets.QLabel(self.frameHead) self.lblLogo.setGeometry(QtCore.QRect(10, 5, 30, 30)) self.lblLogo.setText("") self.lblLogo.setPixmap(QtGui.QPixmap(":/rsc/rsc/favicon_io/android-chrome-192x192.png")) self.lblLogo.setScaledContents(True) self.lblLogo.setObjectName("lblLogo") self.lblDatabaseStatus = QtWidgets.QLabel(self.frameHead) self.lblDatabaseStatus.setGeometry(QtCore.QRect(160, 10, 51, 16)) self.lblDatabaseStatus.setObjectName("lblDatabaseStatus") self.rbDatabaseStatus = QtWidgets.QRadioButton(self.frameHead) self.rbDatabaseStatus.setEnabled(True) self.rbDatabaseStatus.setGeometry(QtCore.QRect(140, 10, 16, 17)) self.rbDatabaseStatus.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "QRadioButton::indicator:checked {\n" " background-color: green;\n" " border: 2px solid black;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: red;\n" " border: 2px solid black;\n" "}") self.rbDatabaseStatus.setText("") self.rbDatabaseStatus.setCheckable(True) self.rbDatabaseStatus.setChecked(False) self.rbDatabaseStatus.setAutoExclusive(False) self.rbDatabaseStatus.setObjectName("rbDatabaseStatus") self.rbChromedriverStatus = QtWidgets.QRadioButton(self.frameHead) self.rbChromedriverStatus.setEnabled(False) self.rbChromedriverStatus.setGeometry(QtCore.QRect(260, 10, 16, 17)) self.rbChromedriverStatus.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "QRadioButton::indicator:checked {\n" " background-color: green;\n" " border: 2px solid black;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: red;\n" " border: 2px solid black;\n" "}") self.rbChromedriverStatus.setText("") self.rbChromedriverStatus.setCheckable(True) self.rbChromedriverStatus.setChecked(False) self.rbChromedriverStatus.setAutoExclusive(False) self.rbChromedriverStatus.setObjectName("rbChromedriverStatus") self.line1_2 = QtWidgets.QFrame(self.frameHead) self.line1_2.setGeometry(QtCore.QRect(0, 35, 801, 10)) self.line1_2.setFrameShadow(QtWidgets.QFrame.Plain) self.line1_2.setLineWidth(1) self.line1_2.setMidLineWidth(0) self.line1_2.setFrameShape(QtWidgets.QFrame.HLine) self.line1_2.setObjectName("line1_2") self.frameBody = QtWidgets.QFrame(self.centralwidget) self.frameBody.setGeometry(QtCore.QRect(0, 41, 801, 635)) self.frameBody.setStyleSheet(".QPushButton { \n" "background-color:rgb(240, 240, 240);\n" "border:1px solid black;\n" "border-radius: 5px;\n" " }\n" "\n" ".QFrame {\n" "background-color:white;\n" "}") self.frameBody.setFrameShape(QtWidgets.QFrame.StyledPanel) self.frameBody.setFrameShadow(QtWidgets.QFrame.Raised) self.frameBody.setObjectName("frameBody") self.frameGeneral = QtWidgets.QFrame(self.frameBody) self.frameGeneral.setEnabled(False) self.frameGeneral.setGeometry(QtCore.QRect(0, 50, 801, 101)) self.frameGeneral.setFrameShape(QtWidgets.QFrame.StyledPanel) self.frameGeneral.setFrameShadow(QtWidgets.QFrame.Raised) self.frameGeneral.setObjectName("frameGeneral") self.sbListings = QtWidgets.QSpinBox(self.frameGeneral) self.sbListings.setGeometry(QtCore.QRect(80, 40, 61, 22)) self.sbListings.setObjectName("sbListings") self.dbsFloatPerc = QtWidgets.QDoubleSpinBox(self.frameGeneral) self.dbsFloatPerc.setGeometry(QtCore.QRect(390, 40, 62, 22)) self.dbsFloatPerc.setProperty("value", 0.05) self.dbsFloatPerc.setObjectName("dbsFloatPerc") self.cbSameSticker = QtWidgets.QCheckBox(self.frameGeneral) self.cbSameSticker.setGeometry(QtCore.QRect(480, 70, 131, 17)) self.cbSameSticker.setObjectName("cbSameSticker") self.lblFloatPerc = QtWidgets.QLabel(self.frameGeneral) self.lblFloatPerc.setGeometry(QtCore.QRect(300, 40, 81, 20)) self.lblFloatPerc.setObjectName("lblFloatPerc") self.lblFloatRank = QtWidgets.QLabel(self.frameGeneral) self.lblFloatRank.setGeometry(QtCore.QRect(160, 40, 61, 31)) self.lblFloatRank.setObjectName("lblFloatRank") self.lblUrl = QtWidgets.QLabel(self.frameGeneral) self.lblUrl.setGeometry(QtCore.QRect(10, 10, 61, 20)) self.lblUrl.setObjectName("lblUrl") self.lblListings = QtWidgets.QLabel(self.frameGeneral) self.lblListings.setGeometry(QtCore.QRect(10, 40, 61, 20)) self.lblListings.setObjectName("lblListings") self.btnEvaluate = QtWidgets.QPushButton(self.frameGeneral) self.btnEvaluate.setGeometry(QtCore.QRect(700, 10, 75, 23)) self.btnEvaluate.setObjectName("btnEvaluate") self.leUrl = QtWidgets.QLineEdit(self.frameGeneral) self.leUrl.setGeometry(QtCore.QRect(80, 10, 601, 20)) self.leUrl.setObjectName("leUrl") self.dbsStickerPerc = QtWidgets.QDoubleSpinBox(self.frameGeneral) self.dbsStickerPerc.setGeometry(QtCore.QRect(390, 70, 62, 22)) self.dbsStickerPerc.setProperty("value", 0.05) self.dbsStickerPerc.setObjectName("dbsStickerPerc") self.sbFloatRank = QtWidgets.QSpinBox(self.frameGeneral) self.sbFloatRank.setGeometry(QtCore.QRect(230, 40, 42, 22)) self.sbFloatRank.setMaximum(100) self.sbFloatRank.setProperty("value", 99) self.sbFloatRank.setObjectName("sbFloatRank") self.lblStickerPerc = QtWidgets.QLabel(self.frameGeneral) self.lblStickerPerc.setGeometry(QtCore.QRect(300, 70, 81, 20)) self.lblStickerPerc.setObjectName("lblStickerPerc") self.line1 = QtWidgets.QFrame(self.frameBody) self.line1.setGeometry(QtCore.QRect(10, 40, 781, 16)) self.line1.setFrameShadow(QtWidgets.QFrame.Plain) self.line1.setLineWidth(2) self.line1.setMidLineWidth(0) self.line1.setFrameShape(QtWidgets.QFrame.HLine) self.line1.setObjectName("line1") self.frameListings = QtWidgets.QFrame(self.frameBody) self.frameListings.setEnabled(False) self.frameListings.setGeometry(QtCore.QRect(0, 430, 801, 211)) self.frameListings.setFrameShape(QtWidgets.QFrame.StyledPanel) self.frameListings.setFrameShadow(QtWidgets.QFrame.Raised) self.frameListings.setObjectName("frameListings") self.tableListings = QtWidgets.QTableWidget(self.frameListings) self.tableListings.setGeometry(QtCore.QRect(10, 10, 781, 191)) self.tableListings.setStyleSheet("background-color: rgb(255, 255, 255);") self.tableListings.setObjectName("tableListings") self.tableListings.setColumnCount(5) self.tableListings.setRowCount(0) item = QtWidgets.QTableWidgetItem() self.tableListings.setHorizontalHeaderItem(0, item) item = QtWidgets.QTableWidgetItem() self.tableListings.setHorizontalHeaderItem(1, item) item = QtWidgets.QTableWidgetItem() self.tableListings.setHorizontalHeaderItem(2, item) item = QtWidgets.QTableWidgetItem() self.tableListings.setHorizontalHeaderItem(3, item) item = QtWidgets.QTableWidgetItem() self.tableListings.setHorizontalHeaderItem(4, item) self.line2 = QtWidgets.QFrame(self.frameBody) self.line2.setGeometry(QtCore.QRect(10, 190, 781, 16)) self.line2.setFrameShadow(QtWidgets.QFrame.Plain) self.line2.setLineWidth(2) self.line2.setMidLineWidth(0) self.line2.setFrameShape(QtWidgets.QFrame.HLine) self.line2.setObjectName("line2") self.lblBestListings = QtWidgets.QLabel(self.frameBody) self.lblBestListings.setGeometry(QtCore.QRect(340, 400, 81, 20)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.lblBestListings.setFont(font) self.lblBestListings.setObjectName("lblBestListings") self.lblStatistics = QtWidgets.QLabel(self.frameBody) self.lblStatistics.setGeometry(QtCore.QRect(340, 170, 71, 20)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.lblStatistics.setFont(font) self.lblStatistics.setObjectName("lblStatistics") self.line4 = QtWidgets.QFrame(self.frameBody) self.line4.setGeometry(QtCore.QRect(10, 420, 781, 16)) self.line4.setFrameShadow(QtWidgets.QFrame.Plain) self.line4.setLineWidth(2) self.line4.setMidLineWidth(0) self.line4.setFrameShape(QtWidgets.QFrame.HLine) self.line4.setObjectName("line4") self.lblGeneral = QtWidgets.QLabel(self.frameBody) self.lblGeneral.setGeometry(QtCore.QRect(340, 20, 71, 20)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.lblGeneral.setFont(font) self.lblGeneral.setObjectName("lblGeneral") self.frameDatabase = QtWidgets.QFrame(self.frameBody) self.frameDatabase.setGeometry(QtCore.QRect(0, 300, 801, 91)) self.frameDatabase.setFrameShape(QtWidgets.QFrame.StyledPanel) self.frameDatabase.setFrameShadow(QtWidgets.QFrame.Raised) self.frameDatabase.setObjectName("frameDatabase") self.btnConnectDatabase = QtWidgets.QPushButton(self.frameDatabase) self.btnConnectDatabase.setGeometry(QtCore.QRect(350, 30, 75, 23)) self.btnConnectDatabase.setObjectName("btnConnectDatabase") self.lblPurgeStale = QtWidgets.QLabel(self.frameDatabase) self.lblPurgeStale.setGeometry(QtCore.QRect(480, 10, 141, 20)) self.lblPurgeStale.setObjectName("lblPurgeStale") self.sbPurgeStale = QtWidgets.QSpinBox(self.frameDatabase) self.sbPurgeStale.setGeometry(QtCore.QRect(630, 10, 42, 22)) self.sbPurgeStale.setFrame(True) self.sbPurgeStale.setSuffix("") self.sbPurgeStale.setMaximum(1024) self.sbPurgeStale.setProperty("value", 1) self.sbPurgeStale.setObjectName("sbPurgeStale") self.lblStaleHours = QtWidgets.QLabel(self.frameDatabase) self.lblStaleHours.setGeometry(QtCore.QRect(680, 10, 31, 20)) self.lblStaleHours.setObjectName("lblStaleHours") self.frameLocal = QtWidgets.QFrame(self.frameDatabase) self.frameLocal.setGeometry(QtCore.QRect(10, 10, 331, 71)) self.frameLocal.setFrameShape(QtWidgets.QFrame.Box) self.frameLocal.setFrameShadow(QtWidgets.QFrame.Plain) self.frameLocal.setObjectName("frameLocal") self.cbUseLocalDatabase = QtWidgets.QCheckBox(self.frameLocal) self.cbUseLocalDatabase.setGeometry(QtCore.QRect(10, 40, 141, 17)) self.cbUseLocalDatabase.setChecked(True) self.cbUseLocalDatabase.setObjectName("cbUseLocalDatabase") self.frameOnline = QtWidgets.QFrame(self.frameLocal) self.frameOnline.setEnabled(True) self.frameOnline.setGeometry(QtCore.QRect(10, 10, 291, 21)) self.frameOnline.setFrameShape(QtWidgets.QFrame.StyledPanel) self.frameOnline.setFrameShadow(QtWidgets.QFrame.Raised) self.frameOnline.setObjectName("frameOnline") self.lblip = QtWidgets.QLabel(self.frameOnline) self.lblip.setEnabled(True) self.lblip.setGeometry(QtCore.QRect(0, 0, 46, 13)) self.lblip.setObjectName("lblip") self.lePort = QtWidgets.QLineEdit(self.frameOnline) self.lePort.setEnabled(True) self.lePort.setGeometry(QtCore.QRect(240, 0, 51, 20)) self.lePort.setObjectName("lePort") self.lblPort = QtWidgets.QLabel(self.frameOnline) self.lblPort.setEnabled(True) self.lblPort.setGeometry(QtCore.QRect(200, 0, 46, 13)) self.lblPort.setObjectName("lblPort") self.leIP = QtWidgets.QLineEdit(self.frameOnline) self.leIP.setEnabled(True) self.leIP.setGeometry(QtCore.QRect(20, 0, 171, 20)) self.leIP.setObjectName("leIP") self.leLocalDBName = QtWidgets.QLineEdit(self.frameLocal) self.leLocalDBName.setGeometry(QtCore.QRect(160, 40, 101, 20)) self.leLocalDBName.setObjectName("leLocalDBName") self.frameLocal.raise_() self.btnConnectDatabase.raise_() self.lblPurgeStale.raise_() self.sbPurgeStale.raise_() self.lblStaleHours.raise_() self.frameStatistics = QtWidgets.QFrame(self.frameBody) self.frameStatistics.setEnabled(False) self.frameStatistics.setGeometry(QtCore.QRect(0, 210, 801, 51)) self.frameStatistics.setFrameShape(QtWidgets.QFrame.StyledPanel) self.frameStatistics.setFrameShadow(QtWidgets.QFrame.Raised) self.frameStatistics.setObjectName("frameStatistics") self.lblBucket = QtWidgets.QLabel(self.frameStatistics) self.lblBucket.setGeometry(QtCore.QRect(20, 10, 61, 20)) self.lblBucket.setObjectName("lblBucket") self.pbPages = QtWidgets.QProgressBar(self.frameStatistics) self.pbPages.setGeometry(QtCore.QRect(570, 10, 118, 23)) self.pbPages.setMaximum(20) self.pbPages.setProperty("value", 0) self.pbPages.setObjectName("pbPages") self.lblCooldown = QtWidgets.QLabel(self.frameStatistics) self.lblCooldown.setGeometry(QtCore.QRect(250, 10, 61, 20)) self.lblCooldown.setObjectName("lblCooldown") self.lblPages = QtWidgets.QLabel(self.frameStatistics) self.lblPages.setGeometry(QtCore.QRect(480, 10, 81, 20)) self.lblPages.setObjectName("lblPages") self.lline2 = QtWidgets.QFrame(self.frameStatistics) self.lline2.setGeometry(QtCore.QRect(450, 0, 16, 41)) self.lline2.setFrameShadow(QtWidgets.QFrame.Plain) self.lline2.setFrameShape(QtWidgets.QFrame.VLine) self.lline2.setObjectName("lline2") self.pbBucket = QtWidgets.QProgressBar(self.frameStatistics) self.pbBucket.setGeometry(QtCore.QRect(100, 10, 118, 23)) self.pbBucket.setMaximum(20) self.pbBucket.setProperty("value", 0) self.pbBucket.setObjectName("pbBucket") self.pbCooldown = QtWidgets.QProgressBar(self.frameStatistics) self.pbCooldown.setGeometry(QtCore.QRect(320, 10, 118, 23)) self.pbCooldown.setMaximum(60) self.pbCooldown.setProperty("value", 60) self.pbCooldown.setInvertedAppearance(False) self.pbCooldown.setObjectName("pbCooldown") self.lline1 = QtWidgets.QFrame(self.frameStatistics) self.lline1.setGeometry(QtCore.QRect(220, 0, 16, 41)) self.lline1.setFrameShadow(QtWidgets.QFrame.Plain) self.lline1.setFrameShape(QtWidgets.QFrame.VLine) self.lline1.setObjectName("lline1") self.line3 = QtWidgets.QFrame(self.frameBody) self.line3.setGeometry(QtCore.QRect(10, 290, 781, 16)) self.line3.setFrameShadow(QtWidgets.QFrame.Plain) self.line3.setLineWidth(2) self.line3.setMidLineWidth(0) self.line3.setFrameShape(QtWidgets.QFrame.HLine) self.line3.setObjectName("line3") self.lblDatabase = QtWidgets.QLabel(self.frameBody) self.lblDatabase.setGeometry(QtCore.QRect(340, 270, 71, 20)) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.lblDatabase.setFont(font) self.lblDatabase.setObjectName("lblDatabase") Main.setCentralWidget(self.centralwidget) self.statusbar = QtWidgets.QStatusBar(Main) self.statusbar.setStyleSheet("background-color: rgb(240, 240, 240);") self.statusbar.setObjectName("statusbar") Main.setStatusBar(self.statusbar) self.retranslateUi(Main) self.btnExit.clicked.connect(Main.btnexit) self.btnConnectDatabase.clicked.connect(Main.dbconnect) self.cbUseLocalDatabase.toggled['bool'].connect(Main.local) self.btnEvaluate.clicked.connect(Main.evaluate) QtCore.QMetaObject.connectSlotsByName(Main) def retranslateUi(self, Main): _translate = QtCore.QCoreApplication.translate Main.setWindowTitle(_translate("Main", "Steam Trace")) self.lblChromedriverStatus.setText(_translate("Main", "Chromedriver")) self.lblDatabaseStatus.setText(_translate("Main", "Database")) self.cbSameSticker.setText(_translate("Main", "Same Sticker Mutliplier")) self.lblFloatPerc.setText(_translate("Main", "Float Percent:")) self.lblFloatRank.setText(_translate("Main", "Float Rank \n" "Correlation:")) self.lblUrl.setText(_translate("Main", "Url:")) self.lblListings.setText(_translate("Main", "Listings:")) self.btnEvaluate.setText(_translate("Main", "Evaluate")) self.lblStickerPerc.setText(_translate("Main", "Sticker Percent:")) item = self.tableListings.horizontalHeaderItem(0) item.setText(_translate("Main", "Nr.")) item = self.tableListings.horizontalHeaderItem(1) item.setText(_translate("Main", "Value")) item = self.tableListings.horizontalHeaderItem(2) item.setText(_translate("Main", "Profit")) item = self.tableListings.horizontalHeaderItem(3) item.setText(_translate("Main", "Stickers")) item = self.tableListings.horizontalHeaderItem(4) item.setText(_translate("Main", "LID")) self.lblBestListings.setText(_translate("Main", "Best Listings")) self.lblStatistics.setText(_translate("Main", "Statistics")) self.lblGeneral.setText(_translate("Main", "General")) self.btnConnectDatabase.setText(_translate("Main", "Connect")) self.lblPurgeStale.setText(_translate("Main", "Purge Stale Pricedata After:")) self.lblStaleHours.setText(_translate("Main", "Hours")) self.cbUseLocalDatabase.setText(_translate("Main", "Use Local Tinydb instead")) self.lblip.setText(_translate("Main", "IP:")) self.lblPort.setText(_translate("Main", "Port:")) self.leLocalDBName.setText(_translate("Main", "tiny.db")) self.lblBucket.setText(_translate("Main", "Bucket Size:")) self.pbPages.setFormat(_translate("Main", " %v / %m")) self.lblCooldown.setText(_translate("Main", "Cooldown:")) self.lblPages.setText(_translate("Main", "Pages Queried:")) self.pbBucket.setFormat(_translate("Main", " %v / %m")) self.pbCooldown.setFormat(_translate("Main", " %v sek")) self.lblDatabase.setText(_translate("Main", "Database")) import st_rc