Plugins/VcsPlugins/vcsMercurial/ConfigurationPage/MercurialUserDataDialog.py

changeset 2810
fe551b27f62e
child 2847
1843ef6e2656
child 3008
7848489bcb92
equal deleted inserted replaced
2808:ea2b71538de1 2810:fe551b27f62e
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2013 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 (string, string)
33 """
34 return self.usernameEdit.text(), self.emailEdit.text()

eric ide

mercurial