-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstruction_dialog.py
25 lines (19 loc) · 1.03 KB
/
instruction_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
import settings
from ui import howToUse_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
class InstructionDialog(QtWidgets.QDialog, howToUse_ui.Ui_Dialog):
def __init__(self):
super(InstructionDialog, self).__init__()
self.dialog = QtWidgets.QDialog()
howToUse_ui.Ui_Dialog.setupUi(self, self)
self.dialog.ui = howToUse_ui.Ui_Dialog()
self.dialog.ui.setupUi(self.dialog)
self.buttonBox.accepted.connect(self.accept)
self.show()
def accept(self):
super(InstructionDialog, self).accept()