Added clear fields dialog code
This commit is contained in:
parent
371ff3fa9f
commit
f51e5ed878
1 changed files with 11 additions and 0 deletions
|
@ -28,6 +28,7 @@ from PyQt5.QtWidgets import QApplication, QMainWindow, QMessageBox, QTableWidget
|
|||
from ui_mainwindow import Ui_MainWindow
|
||||
from ui_code_dialog import Ui_WikiCode
|
||||
from ui_about_dialog import Ui_About
|
||||
from ui_clear_dialog import Ui_ClearDialog
|
||||
|
||||
class AboutDialog(QDialog, Ui_About):
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
@ -38,6 +39,16 @@ class AboutDialog(QDialog, Ui_About):
|
|||
|
||||
self.show()
|
||||
|
||||
class ClearDialog(QDialog, Ui_ClearDialog):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(ClearDialog, self).__init__(*args, **kwargs)
|
||||
self.setupUi(self)
|
||||
|
||||
self.b_yes.clicked.connect(self.accept)
|
||||
self.b_no.clicked.connect(self.reject)
|
||||
|
||||
self.show()
|
||||
|
||||
class WikiCodeDialog(QDialog, Ui_WikiCode):
|
||||
def __init__(self, code, *args, **kwargs):
|
||||
super(WikiCodeDialog, self).__init__(*args, **kwargs)
|
||||
|
|
Reference in a new issue