forked from noembryo/KoHighlights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gui_about.py
131 lines (125 loc) · 7.5 KB
/
gui_about.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'D:\Apps\DEV\PROJECTS\KoHighlights\gui_about.ui',
# licensing of 'D:\Apps\DEV\PROJECTS\KoHighlights\gui_about.ui' applies.
#
# Created: Mon Nov 4 00:35:07 2024
# by: pyside2-uic running on PySide2 5.13.2
#
# WARNING! All changes made in this file will be lost!
from PySide2 import QtCore, QtGui, QtWidgets
class Ui_About(object):
def setupUi(self, About):
About.setObjectName("About")
About.setWindowModality(QtCore.Qt.ApplicationModal)
About.resize(480, 560)
About.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
About.setModal(False)
self.verticalLayout = QtWidgets.QVBoxLayout(About)
self.verticalLayout.setObjectName("verticalLayout")
self.about_tabs = QtWidgets.QTabWidget(About)
self.about_tabs.setTabShape(QtWidgets.QTabWidget.Rounded)
self.about_tabs.setDocumentMode(True)
self.about_tabs.setObjectName("about_tabs")
self.info_tab = QtWidgets.QWidget()
self.info_tab.setObjectName("info_tab")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.info_tab)
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.scrollArea_2 = QtWidgets.QScrollArea(self.info_tab)
self.scrollArea_2.setStyleSheet("QScrollArea {background-color:transparent;}")
self.scrollArea_2.setWidgetResizable(True)
self.scrollArea_2.setObjectName("scrollArea_2")
self.scrollAreaWidgetContents_2 = QtWidgets.QWidget()
self.scrollAreaWidgetContents_2.setGeometry(QtCore.QRect(0, 0, 460, 490))
self.scrollAreaWidgetContents_2.setStyleSheet("background-color:transparent;")
self.scrollAreaWidgetContents_2.setObjectName("scrollAreaWidgetContents_2")
self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.scrollAreaWidgetContents_2)
self.verticalLayout_6.setContentsMargins(6, 0, 6, 0)
self.verticalLayout_6.setObjectName("verticalLayout_6")
self.text_lbl = QtWidgets.QLabel(self.scrollAreaWidgetContents_2)
self.text_lbl.setText("")
self.text_lbl.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
self.text_lbl.setWordWrap(True)
self.text_lbl.setOpenExternalLinks(True)
self.text_lbl.setObjectName("text_lbl")
self.verticalLayout_6.addWidget(self.text_lbl)
self.scrollArea_2.setWidget(self.scrollAreaWidgetContents_2)
self.verticalLayout_2.addWidget(self.scrollArea_2)
self.about_tabs.addTab(self.info_tab, "")
self.system_tab = QtWidgets.QWidget()
self.system_tab.setObjectName("system_tab")
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.system_tab)
self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.system_txt = QtWidgets.QTextEdit(self.system_tab)
self.system_txt.setTextInteractionFlags(QtCore.Qt.TextSelectableByMouse)
self.system_txt.setObjectName("system_txt")
self.verticalLayout_4.addWidget(self.system_txt)
self.about_tabs.addTab(self.system_tab, "")
self.usage_tab = QtWidgets.QWidget()
self.usage_tab.setObjectName("usage_tab")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.usage_tab)
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.usage_txt = QtWidgets.QTextBrowser(self.usage_tab)
self.usage_txt.setFrameShape(QtWidgets.QFrame.WinPanel)
self.usage_txt.setTextInteractionFlags(QtCore.Qt.TextBrowserInteraction)
self.usage_txt.setOpenLinks(False)
self.usage_txt.setObjectName("usage_txt")
self.verticalLayout_3.addWidget(self.usage_txt)
self.about_tabs.addTab(self.usage_tab, "")
self.log_tab = QtWidgets.QWidget()
self.log_tab.setObjectName("log_tab")
self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.log_tab)
self.verticalLayout_8.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_8.setObjectName("verticalLayout_8")
self.log_txt = QtWidgets.QPlainTextEdit(self.log_tab)
self.log_txt.setFrameShape(QtWidgets.QFrame.WinPanel)
self.log_txt.setUndoRedoEnabled(False)
self.log_txt.setReadOnly(True)
self.log_txt.setPlainText("")
self.log_txt.setObjectName("log_txt")
self.verticalLayout_8.addWidget(self.log_txt)
self.about_tabs.addTab(self.log_tab, "")
self.verticalLayout.addWidget(self.about_tabs)
self.btn_box = QtWidgets.QFrame(About)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.btn_box.sizePolicy().hasHeightForWidth())
self.btn_box.setSizePolicy(sizePolicy)
self.btn_box.setObjectName("btn_box")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.btn_box)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.usage_btn = QtWidgets.QPushButton(self.btn_box)
self.usage_btn.setAutoDefault(False)
self.usage_btn.setObjectName("usage_btn")
self.horizontalLayout.addWidget(self.usage_btn)
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.updates_btn = QtWidgets.QPushButton(self.btn_box)
self.updates_btn.setAutoDefault(False)
self.updates_btn.setObjectName("updates_btn")
self.horizontalLayout.addWidget(self.updates_btn)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem1)
self.close_btn = QtWidgets.QPushButton(self.btn_box)
self.close_btn.setObjectName("close_btn")
self.horizontalLayout.addWidget(self.close_btn)
self.verticalLayout.addWidget(self.btn_box)
self.retranslateUi(About)
self.about_tabs.setCurrentIndex(0)
QtCore.QObject.connect(self.close_btn, QtCore.SIGNAL("clicked()"), About.close)
QtCore.QMetaObject.connectSlotsByName(About)
def retranslateUi(self, About):
self.about_tabs.setTabText(self.about_tabs.indexOf(self.info_tab), QtWidgets.QApplication.translate("About", "Information", None, -1))
self.about_tabs.setTabText(self.about_tabs.indexOf(self.system_tab), QtWidgets.QApplication.translate("About", "System", None, -1))
self.about_tabs.setTabText(self.about_tabs.indexOf(self.usage_tab), QtWidgets.QApplication.translate("About", "User Guide", None, -1))
self.about_tabs.setTabText(self.about_tabs.indexOf(self.log_tab), QtWidgets.QApplication.translate("About", "Log", None, -1))
self.usage_btn.setToolTip(QtWidgets.QApplication.translate("About", "View the User Guide online", None, -1))
self.usage_btn.setText(QtWidgets.QApplication.translate("About", "Online Guide", None, -1))
self.updates_btn.setToolTip(QtWidgets.QApplication.translate("About", "Check online for an updated version", None, -1))
self.updates_btn.setText(QtWidgets.QApplication.translate("About", "Check for Updates", None, -1))
self.close_btn.setText(QtWidgets.QApplication.translate("About", "Close", None, -1))
import images_rc