Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesQueueManagementDialog.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 used by the queue management functions. 7 Module implementing a dialog used by the queue management functions.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
11 try:
12 str = unicode
13 except (NameError):
14 pass
9 15
10 from PyQt4.QtCore import pyqtSlot, QProcess, QCoreApplication 16 from PyQt4.QtCore import pyqtSlot, QProcess, QCoreApplication
11 from PyQt4.QtGui import QDialog, QDialogButtonBox, QAbstractItemView, QListWidgetItem, \ 17 from PyQt4.QtGui import QDialog, QDialogButtonBox, QAbstractItemView, QListWidgetItem, \
12 QAbstractButton 18 QAbstractButton
13 19
36 queue (boolean) 42 queue (boolean)
37 @param repodir name of the repository directory (string) 43 @param repodir name of the repository directory (string)
38 @param vcs reference to the vcs object 44 @param vcs reference to the vcs object
39 @param parent reference to the parent widget (QWidget) 45 @param parent reference to the parent widget (QWidget)
40 """ 46 """
41 super().__init__(parent) 47 super(HgQueuesQueueManagementDialog, self).__init__(parent)
42 self.setupUi(self) 48 self.setupUi(self)
43 49
44 if mode not in (HgQueuesQueueManagementDialog.NO_INPUT, 50 if mode not in (HgQueuesQueueManagementDialog.NO_INPUT,
45 HgQueuesQueueManagementDialog.NAME_INPUT, 51 HgQueuesQueueManagementDialog.NAME_INPUT,
46 HgQueuesQueueManagementDialog.QUEUE_INPUT): 52 HgQueuesQueueManagementDialog.QUEUE_INPUT):

eric ide

mercurial