Added clear fields dialog code

This commit is contained in:
Marcel Kapfer 2020-09-09 23:44:52 +02:00
parent 371ff3fa9f
commit f51e5ed878
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -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)