eric6/Plugins/VcsPlugins/vcsGit/GitDialog.py

branch
maintenance
changeset 8273
698ae46f40a4
parent 8176
31965986ecd1
parent 8218
7c09585bd960
equal deleted inserted replaced
8190:fb0ef164f536 8273:698ae46f40a4
36 36
37 @param text text to be shown by the label (string) 37 @param text text to be shown by the label (string)
38 @param git reference to the Git interface object (Git) 38 @param git reference to the Git interface object (Git)
39 @param parent parent widget (QWidget) 39 @param parent parent widget (QWidget)
40 """ 40 """
41 super(GitDialog, self).__init__(parent) 41 super().__init__(parent)
42 self.setupUi(self) 42 self.setupUi(self)
43 43
44 self.buttonBox.button( 44 self.buttonBox.button(
45 QDialogButtonBox.StandardButton.Close).setEnabled(False) 45 QDialogButtonBox.StandardButton.Close).setEnabled(False)
46 self.buttonBox.button( 46 self.buttonBox.button(
313 """ 313 """
314 if self.intercept: 314 if self.intercept:
315 self.intercept = False 315 self.intercept = False
316 evt.accept() 316 evt.accept()
317 return 317 return
318 super(GitDialog, self).keyPressEvent(evt) 318 super().keyPressEvent(evt)
319 319
320 def hasAddOrDelete(self): 320 def hasAddOrDelete(self):
321 """ 321 """
322 Public method to check, if the last action contained an add or delete. 322 Public method to check, if the last action contained an add or delete.
323 323

eric ide

mercurial