-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup_dialog.py
81 lines (66 loc) · 3.69 KB
/
popup_dialog.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
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'popup.ui'
##
## Created by: Qt User Interface Compiler version 6.7.1
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QDialog, QHeaderView, QLabel,
QPushButton, QSizePolicy, QTableWidget, QTableWidgetItem,
QVBoxLayout, QWidget)
class Ui_UpdateDialog(object):
def setupUi(self, UpdateDialog):
if not UpdateDialog.objectName():
UpdateDialog.setObjectName(u"UpdateDialog")
UpdateDialog.resize(479, 313)
UpdateDialog.setMinimumSize(QSize(479, 313))
UpdateDialog.setMaximumSize(QSize(800, 600))
self.verticalLayout = QVBoxLayout(UpdateDialog)
self.verticalLayout.setObjectName(u"verticalLayout")
self.label = QLabel(UpdateDialog)
self.label.setObjectName(u"label")
self.label.setMinimumSize(QSize(0, 10))
self.label.setMaximumSize(QSize(16777215, 40))
self.verticalLayout.addWidget(self.label)
self.tableWidget = QTableWidget(UpdateDialog)
if (self.tableWidget.columnCount() < 3):
self.tableWidget.setColumnCount(3)
__qtablewidgetitem = QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(0, __qtablewidgetitem)
__qtablewidgetitem1 = QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(1, __qtablewidgetitem1)
__qtablewidgetitem2 = QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(2, __qtablewidgetitem2)
self.tableWidget.setObjectName(u"tableWidget")
self.tableWidget.setMaximumSize(QSize(16777215, 16777215))
self.verticalLayout.addWidget(self.tableWidget)
self.label_8 = QLabel(UpdateDialog)
self.label_8.setObjectName(u"label_8")
self.verticalLayout.addWidget(self.label_8)
self.updateBtn = QPushButton(UpdateDialog)
self.updateBtn.setObjectName(u"updateBtn")
self.updateBtn.setMinimumSize(QSize(0, 30))
self.verticalLayout.addWidget(self.updateBtn, 0, Qt.AlignmentFlag.AlignRight)
self.retranslateUi(UpdateDialog)
QMetaObject.connectSlotsByName(UpdateDialog)
# setupUi
def retranslateUi(self, UpdateDialog):
UpdateDialog.setWindowTitle(QCoreApplication.translate("UpdateDialog", u"Update Available", None))
self.label.setText(QCoreApplication.translate("UpdateDialog", u"Following updates are available:", None))
___qtablewidgetitem = self.tableWidget.horizontalHeaderItem(0)
___qtablewidgetitem.setText(QCoreApplication.translate("UpdateDialog", u"Name", None));
___qtablewidgetitem1 = self.tableWidget.horizontalHeaderItem(1)
___qtablewidgetitem1.setText(QCoreApplication.translate("UpdateDialog", u"Current Version", None));
___qtablewidgetitem2 = self.tableWidget.horizontalHeaderItem(2)
___qtablewidgetitem2.setText(QCoreApplication.translate("UpdateDialog", u"Latest Version", None));
self.label_8.setText(QCoreApplication.translate("UpdateDialog", u"Do you want to update now ?", None))
self.updateBtn.setText(QCoreApplication.translate("UpdateDialog", u"Ok", None))
# retranslateUi