eric6/UI/InstallInfoDialog.py

changeset 8218
7c09585bd960
parent 8143
2c730d5fd177
equal deleted inserted replaced
8217:385f60c94548 8218:7c09585bd960
30 Constructor 30 Constructor
31 31
32 @param parent reference to the parent widget 32 @param parent reference to the parent widget
33 @type QWidget 33 @type QWidget
34 """ 34 """
35 super(InstallInfoDialog, self).__init__(parent) 35 super().__init__(parent)
36 self.setupUi(self) 36 self.setupUi(self)
37 37
38 self.__deleteButton = self.buttonBox.addButton( 38 self.__deleteButton = self.buttonBox.addButton(
39 self.tr("Delete Info"), QDialogButtonBox.ButtonRole.ActionRole) 39 self.tr("Delete Info"), QDialogButtonBox.ButtonRole.ActionRole)
40 self.__deleteButton.clicked.connect(self.on_deleteButton_clicked) 40 self.__deleteButton.clicked.connect(self.on_deleteButton_clicked)
155 """ changes will be lost. Save first?"""), 155 """ changes will be lost. Save first?"""),
156 yesDefault=True) 156 yesDefault=True)
157 if yes: 157 if yes:
158 self.__saveData() 158 self.__saveData()
159 159
160 super(InstallInfoDialog, self).reject() 160 super().reject()
161 161
162 def __saveData(self): 162 def __saveData(self):
163 """ 163 """
164 Private method to save the data. 164 Private method to save the data.
165 """ 165 """

eric ide

mercurial