Plugins/VcsPlugins/vcsMercurial/ConfigurationPage/MercurialUserDataDialog.py

changeset 3231
a7c9914d1c41
parent 3230
2beb981f3b6d
child 3232
c2e2ca23c86b
equal deleted inserted replaced
3230:2beb981f3b6d 3231:a7c9914d1c41
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2013 - 2014 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing a dialog to enter the user data for a minimal hgrc file.
8 """
9
10 from PyQt4.QtGui import QDialog
11
12 from .Ui_MercurialUserDataDialog import Ui_MercurialUserDataDialog
13
14
15 class MercurialUserDataDialog(QDialog, Ui_MercurialUserDataDialog):
16 """
17 Class implementing a dialog to enter the user data for a minimal hgrc file.
18 """
19 def __init__(self, parent=None):
20 """
21 Constructor
22
23 @param parent reference to the parent widget (QWidget)
24 """
25 super().__init__(parent)
26 self.setupUi(self)
27
28 def getData(self):
29 """
30 Public method to retrieve the data.
31
32 @return tuple containing the user name and the user email address
33 (string, string)
34 """
35 return self.usernameEdit.text(), self.emailEdit.text()

eric ide

mercurial