popup changes
add title as variable, change __init__ path
This commit is contained in:
@@ -14,11 +14,11 @@ from .dialog_sources.Ui_confirm_extend import Ui_extend_confirm
|
||||
|
||||
|
||||
class ConfirmDialog(QtWidgets.QDialog, Ui_extend_confirm):
|
||||
def __init__(self, parent=None):
|
||||
def __init__(self, parent=None, title=None):
|
||||
super().__init__(parent)
|
||||
self.setupUi(self)
|
||||
self.setWindowIcon(Icon("info").icon)
|
||||
|
||||
self.setWindowTitle(title)
|
||||
|
||||
if __name__ == "__main__":
|
||||
import sys
|
||||
|
||||
Reference in New Issue
Block a user