eric6/Plugins/VcsPlugins/vcsGit/GitDialog.py

changeset 8218
7c09585bd960
parent 8143
2c730d5fd177
child 8273
698ae46f40a4
equal deleted inserted replaced
8217:385f60c94548 8218:7c09585bd960
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