Plugins/VcsPlugins/vcsSubversion/SvnStatusDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2406
975af671146d
child 2677
3d4277929fb3
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
5 5
6 """ 6 """
7 Module implementing a dialog to show the output of the svn status command 7 Module implementing a dialog to show the output of the svn status command
8 process. 8 process.
9 """ 9 """
10
11 from __future__ import unicode_literals # __IGNORE_WARNING__
12 try:
13 str = unicode
14 except (NameError):
15 pass
10 16
11 import os 17 import os
12 18
13 from PyQt4.QtCore import QTimer, QProcess, QRegExp, Qt, pyqtSlot 19 from PyQt4.QtCore import QTimer, QProcess, QRegExp, Qt, pyqtSlot
14 from PyQt4.QtGui import QWidget, QHeaderView, QLineEdit, QApplication, QMenu, \ 20 from PyQt4.QtGui import QWidget, QHeaderView, QLineEdit, QApplication, QMenu, \
32 Constructor 38 Constructor
33 39
34 @param vcs reference to the vcs object 40 @param vcs reference to the vcs object
35 @param parent parent widget (QWidget) 41 @param parent parent widget (QWidget)
36 """ 42 """
37 super().__init__(parent) 43 super(SvnStatusDialog, self).__init__(parent)
38 self.setupUi(self) 44 self.setupUi(self)
39 45
40 self.__toBeCommittedColumn = 0 46 self.__toBeCommittedColumn = 0
41 self.__changelistColumn = 1 47 self.__changelistColumn = 1
42 self.__statusColumn = 2 48 self.__statusColumn = 2
564 """ 570 """
565 if self.intercept: 571 if self.intercept:
566 self.intercept = False 572 self.intercept = False
567 evt.accept() 573 evt.accept()
568 return 574 return
569 super().keyPressEvent(evt) 575 super(SvnStatusDialog, self).keyPressEvent(evt)
570 576
571 @pyqtSlot() 577 @pyqtSlot()
572 def on_refreshButton_clicked(self): 578 def on_refreshButton_clicked(self):
573 """ 579 """
574 Private slot to refresh the status display. 580 Private slot to refresh the status display.

eric ide

mercurial