-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathabout_dialog.py
29 lines (23 loc) · 1.2 KB
/
about_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
import settings
from ui import about_ui
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtGui import QIcon,QPixmap,QRegExpValidator, QFont, QFontDatabase
from PyQt5.QtCore import qDebug, Qt, QEvent,QRegExp, QCoreApplication
from PyQt5.QtWidgets import QApplication, QFontDialog, QMainWindow, QFileDialog, QSlider, QTextEdit, QDialog, QDialogButtonBox, \
QPushButton, QListWidget, QListWidgetItem, QAbstractItemView,QMouseEventTransition, QSizePolicy, \
QSpacerItem, QAction, QDialog, QComboBox, QListView, QMessageBox
sets = settings.loadConfiguration()
class AboutDialog(QtWidgets.QDialog, about_ui.Ui_Dialog):
def __init__(self):
super(AboutDialog, self).__init__()
self.dialog = QtWidgets.QDialog()
about_ui.Ui_Dialog.setupUi(self, self)
self.dialog.ui = about_ui.Ui_Dialog()
self.dialog.ui.setupUi(self.dialog)
self.buttonBox.accepted.connect(self.accept)
self.dialog.ui.label_4.setOpenExternalLinks(True);
global sets
self.setFont(QFont(sets['user']['font-name'],int(sets['user']['font-size'])))
self.show()
def accept(self):
super(AboutDialog, self).accept()