Plugins/VcsPlugins/vcsSubversion/SvnChangeListsDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 2791
a9577f248f04
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog to browse the change lists. 7 Module implementing a dialog to browse the change lists.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
11 try:
12 str = unicode
13 except (NameError):
14 pass
9 15
10 import os 16 import os
11 17
12 from PyQt4.QtCore import pyqtSlot, Qt, QProcess, QRegExp, QTimer 18 from PyQt4.QtCore import pyqtSlot, Qt, QProcess, QRegExp, QTimer
13 from PyQt4.QtGui import QDialog, QDialogButtonBox, QListWidgetItem, QLineEdit 19 from PyQt4.QtGui import QDialog, QDialogButtonBox, QListWidgetItem, QLineEdit
28 Constructor 34 Constructor
29 35
30 @param vcs reference to the vcs object 36 @param vcs reference to the vcs object
31 @param parent parent widget (QWidget) 37 @param parent parent widget (QWidget)
32 """ 38 """
33 super().__init__(parent) 39 super(SvnChangeListsDialog, self).__init__(parent)
34 self.setupUi(self) 40 self.setupUi(self)
35 41
36 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) 42 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False)
37 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) 43 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True)
38 44
252 """ 258 """
253 if self.intercept: 259 if self.intercept:
254 self.intercept = False 260 self.intercept = False
255 evt.accept() 261 evt.accept()
256 return 262 return
257 super().keyPressEvent(evt) 263 super(SvnChangeListsDialog, self).keyPressEvent(evt)

eric ide

mercurial