Plugins/VcsPlugins/vcsMercurial/HgRevisionSelectionDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 3057
10516539f238
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog to select a revision. 7 Module implementing a dialog to select a revision.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtCore import pyqtSlot 12 from PyQt4.QtCore import pyqtSlot
11 from PyQt4.QtGui import QDialog, QDialogButtonBox 13 from PyQt4.QtGui import QDialog, QDialogButtonBox
12 14
13 from .Ui_HgRevisionSelectionDialog import Ui_HgRevisionSelectionDialog 15 from .Ui_HgRevisionSelectionDialog import Ui_HgRevisionSelectionDialog
26 @param branchesList list of branches (list of strings) 28 @param branchesList list of branches (list of strings)
27 @param bookmarksList list of bookmarks (list of strings) 29 @param bookmarksList list of bookmarks (list of strings)
28 @param showNone flag influencing the label of the 'None' selection (boolean) 30 @param showNone flag influencing the label of the 'None' selection (boolean)
29 @param parent parent widget (QWidget) 31 @param parent parent widget (QWidget)
30 """ 32 """
31 super().__init__(parent) 33 super(HgRevisionSelectionDialog, self).__init__(parent)
32 self.setupUi(self) 34 self.setupUi(self)
33 35
34 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) 36 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False)
35 37
36 self.tagCombo.addItems(sorted(tagsList)) 38 self.tagCombo.addItems(sorted(tagsList))

eric ide

mercurial