src/eric7/EricWidgets/EricAuthenticationDialog.py

branch
eric7
changeset 11035
e1e1d6e317c7
parent 10927
ce599998be7d
child 11090
f5f5f5803935
equal deleted inserted replaced
11034:7b8a21fd2d58 11035:e1e1d6e317c7
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 9
10 from PyQt6.QtCore import QCoreApplication
10 from PyQt6.QtWidgets import QDialog, QStyle 11 from PyQt6.QtWidgets import QDialog, QStyle
11 12
12 from .Ui_EricAuthenticationDialog import Ui_EricAuthenticationDialog 13 from .Ui_EricAuthenticationDialog import Ui_EricAuthenticationDialog
13 14
14 15
30 @param saveIt flag indicating the value for the save checkbox 31 @param saveIt flag indicating the value for the save checkbox
31 @type bool 32 @type bool
32 @param parent reference to the parent widget 33 @param parent reference to the parent widget
33 @type QWidget 34 @type QWidget
34 """ 35 """
36 if parent is None:
37 parent = QCoreApplication.instance().getMainWindow()
38
35 super().__init__(parent) 39 super().__init__(parent)
36 self.setupUi(self) 40 self.setupUi(self)
37 41
38 self.infoLabel.setText(info) 42 self.infoLabel.setText(info)
39 self.usernameEdit.setText(username) 43 self.usernameEdit.setText(username)

eric ide

mercurial