eric6/Plugins/VcsPlugins/vcsSubversion/SvnDialog.py

branch
maintenance
changeset 8273
698ae46f40a4
parent 8218
7c09585bd960
equal deleted inserted replaced
8190:fb0ef164f536 8273:698ae46f40a4
33 Constructor 33 Constructor
34 34
35 @param text text to be shown by the label (string) 35 @param text text to be shown by the label (string)
36 @param parent parent widget (QWidget) 36 @param parent parent widget (QWidget)
37 """ 37 """
38 super(SvnDialog, self).__init__(parent) 38 super().__init__(parent)
39 self.setupUi(self) 39 self.setupUi(self)
40 self.setWindowFlags(Qt.WindowType.Window) 40 self.setWindowFlags(Qt.WindowType.Window)
41 41
42 self.buttonBox.button( 42 self.buttonBox.button(
43 QDialogButtonBox.StandardButton.Close).setEnabled(False) 43 QDialogButtonBox.StandardButton.Close).setEnabled(False)
273 """ 273 """
274 if self.intercept: 274 if self.intercept:
275 self.intercept = False 275 self.intercept = False
276 evt.accept() 276 evt.accept()
277 return 277 return
278 super(SvnDialog, self).keyPressEvent(evt) 278 super().keyPressEvent(evt)
279 279
280 def hasAddOrDelete(self): 280 def hasAddOrDelete(self):
281 """ 281 """
282 Public method to check, if the last action contained an add or delete. 282 Public method to check, if the last action contained an add or delete.
283 283

eric ide

mercurial