eric6/Plugins/VcsPlugins/vcsGit/GitStashBrowserDialog.py

changeset 8218
7c09585bd960
parent 8143
2c730d5fd177
equal deleted inserted replaced
8217:385f60c94548 8218:7c09585bd960
42 Constructor 42 Constructor
43 43
44 @param vcs reference to the vcs object 44 @param vcs reference to the vcs object
45 @param parent reference to the parent widget (QWidget) 45 @param parent reference to the parent widget (QWidget)
46 """ 46 """
47 super(GitStashBrowserDialog, self).__init__(parent) 47 super().__init__(parent)
48 self.setupUi(self) 48 self.setupUi(self)
49 49
50 self.buttonBox.button( 50 self.buttonBox.button(
51 QDialogButtonBox.StandardButton.Close).setEnabled(False) 51 QDialogButtonBox.StandardButton.Close).setEnabled(False)
52 self.buttonBox.button( 52 self.buttonBox.button(
117 """ 117 """
118 if not self.__position.isNull(): 118 if not self.__position.isNull():
119 self.move(self.__position) 119 self.move(self.__position)
120 self.__resetUI() 120 self.__resetUI()
121 121
122 super(GitStashBrowserDialog, self).show() 122 super().show()
123 123
124 def __resetUI(self): 124 def __resetUI(self):
125 """ 125 """
126 Private method to reset the user interface. 126 Private method to reset the user interface.
127 """ 127 """
454 """ 454 """
455 if self.intercept: 455 if self.intercept:
456 self.intercept = False 456 self.intercept = False
457 evt.accept() 457 evt.accept()
458 return 458 return
459 super(GitStashBrowserDialog, self).keyPressEvent(evt) 459 super().keyPressEvent(evt)
460 460
461 def __showPatch(self): 461 def __showPatch(self):
462 """ 462 """
463 Private slot to show the contents of the selected stash. 463 Private slot to show the contents of the selected stash.
464 """ 464 """

eric ide

mercurial