UI/AuthenticationDialog.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 the authentication dialog for the help browser. 7 Module implementing the authentication dialog for the help browser.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtGui import QDialog, QStyle 12 from PyQt4.QtGui import QDialog, QStyle
11 13
12 from .Ui_AuthenticationDialog import Ui_AuthenticationDialog 14 from .Ui_AuthenticationDialog import Ui_AuthenticationDialog
13 15
23 @param info information to be shown (string) 25 @param info information to be shown (string)
24 @param username username as supplied by subversion (string) 26 @param username username as supplied by subversion (string)
25 @param showSave flag to indicate to show the save checkbox (boolean) 27 @param showSave flag to indicate to show the save checkbox (boolean)
26 @param saveIt flag indicating the value for the save checkbox (boolean) 28 @param saveIt flag indicating the value for the save checkbox (boolean)
27 """ 29 """
28 super().__init__(parent) 30 super(AuthenticationDialog, self).__init__(parent)
29 self.setupUi(self) 31 self.setupUi(self)
30 32
31 self.infoLabel.setText(info) 33 self.infoLabel.setText(info)
32 self.usernameEdit.setText(username) 34 self.usernameEdit.setText(username)
33 self.saveCheckBox.setVisible(showSave) 35 self.saveCheckBox.setVisible(showSave)

eric ide

mercurial