src/eric7/UI/AuthenticationDialog.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9653
e67609152c5e
diff -r e9e7eca7efee -r bf71ee032bb4 src/eric7/UI/AuthenticationDialog.py
--- a/src/eric7/UI/AuthenticationDialog.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/UI/AuthenticationDialog.py	Wed Jul 13 14:55:47 2022 +0200
@@ -16,11 +16,11 @@
     """
     Class implementing the authentication dialog for the help browser.
     """
-    def __init__(self, info, username, showSave=False, saveIt=False,
-                 parent=None):
+
+    def __init__(self, info, username, showSave=False, saveIt=False, parent=None):
         """
         Constructor
-        
+
         @param info information to be shown (string)
         @param username username as supplied by subversion (string)
         @param showSave flag to indicate to show the save checkbox (boolean)
@@ -29,43 +29,44 @@
         """
         super().__init__(parent)
         self.setupUi(self)
-        
+
         self.infoLabel.setText(info)
         self.usernameEdit.setText(username)
         self.saveCheckBox.setVisible(showSave)
         self.saveCheckBox.setChecked(saveIt)
-        
+
         self.iconLabel.setText("")
         self.iconLabel.setPixmap(
-            self.style().standardIcon(
-                QStyle.StandardPixmap.SP_MessageBoxQuestion)
-            .pixmap(32, 32))
-        
+            self.style()
+            .standardIcon(QStyle.StandardPixmap.SP_MessageBoxQuestion)
+            .pixmap(32, 32)
+        )
+
         msh = self.minimumSizeHint()
         self.resize(max(self.width(), msh.width()), msh.height())
-    
+
     def setData(self, username, password):
         """
         Public method to set the login data.
-        
+
         @param username username (string)
         @param password password (string)
         """
         self.usernameEdit.setText(username)
         self.passwordEdit.setText(password)
-    
+
     def getData(self):
         """
         Public method to retrieve the login data.
-        
+
         @return tuple of two string values (username, password)
         """
         return (self.usernameEdit.text(), self.passwordEdit.text())
-    
+
     def shallSave(self):
         """
         Public method to check, if the login data shall be saved.
-        
+
         @return flag indicating that the login data shall be saved (boolean)
         """
         return self.saveCheckBox.isChecked()

eric ide

mercurial