Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesNewPatchDialog.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 get the data for a new patch. 7 Module implementing a dialog to get the data for a new patch.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtCore import pyqtSlot, QDateTime 12 from PyQt4.QtCore import pyqtSlot, QDateTime
11 from PyQt4.QtGui import QDialog, QDialogButtonBox 13 from PyQt4.QtGui import QDialog, QDialogButtonBox
12 14
13 from .Ui_HgQueuesNewPatchDialog import Ui_HgQueuesNewPatchDialog 15 from .Ui_HgQueuesNewPatchDialog import Ui_HgQueuesNewPatchDialog
27 @param mode mode of the dialog (HgQueuesNewPatchDialog.NEW_MODE, 29 @param mode mode of the dialog (HgQueuesNewPatchDialog.NEW_MODE,
28 HgQueuesNewPatchDialog.REFRESH_MODE) 30 HgQueuesNewPatchDialog.REFRESH_MODE)
29 @param message text to set as the commit message (string) 31 @param message text to set as the commit message (string)
30 @param parent reference to the parent widget (QWidget) 32 @param parent reference to the parent widget (QWidget)
31 """ 33 """
32 super().__init__(parent) 34 super(HgQueuesNewPatchDialog, self).__init__(parent)
33 self.setupUi(self) 35 self.setupUi(self)
34 36
35 self.__mode = mode 37 self.__mode = mode
36 if self.__mode == HgQueuesNewPatchDialog.REFRESH_MODE: 38 if self.__mode == HgQueuesNewPatchDialog.REFRESH_MODE:
37 self.nameLabel.hide() 39 self.nameLabel.hide()

eric ide

mercurial