src/eric7/Plugins/VcsPlugins/vcsGit/GitAddRemoteDialog.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9473
3f23dbf37dbe
--- a/src/eric7/Plugins/VcsPlugins/vcsGit/GitAddRemoteDialog.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsGit/GitAddRemoteDialog.py	Wed Jul 13 14:55:47 2022 +0200
@@ -17,63 +17,64 @@
     """
     Class implementing a dialog to enter the data of a remote repository.
     """
+
     def __init__(self, parent=None):
         """
         Constructor
-        
+
         @param parent reference to the parent widget
         @type QWidget
         """
         super().__init__(parent)
         self.setupUi(self)
-        
+
         self.__updateOK()
-        
+
         msh = self.minimumSizeHint()
         self.resize(max(self.width(), msh.width()), msh.height())
-    
+
     def __updateOK(self):
         """
         Private method to update the status of the OK button.
         """
         self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
-            self.nameEdit.text() != "" and
-            self.urlEdit.text() != "")
-    
+            self.nameEdit.text() != "" and self.urlEdit.text() != ""
+        )
+
     @pyqtSlot(str)
     def on_nameEdit_textChanged(self, txt):
         """
         Private slot handling changes of the entered name.
-        
+
         @param txt current text
         @type str
         """
         self.__updateOK()
-    
+
     @pyqtSlot(str)
     def on_urlEdit_textChanged(self, txt):
         """
         Private slot handling changes of the entered URL.
-        
+
         @param txt current text
         @type str
         """
         self.__updateOK()
-    
+
     @pyqtSlot(str)
     def on_userEdit_textChanged(self, txt):
         """
         Private slot handling changes of the entered user name.
-        
+
         @param txt current text
         @type str
         """
         self.passwordEdit.setEnabled(bool(txt))
-    
+
     def getData(self):
         """
         Public method to get the entered data.
-        
+
         @return tuple with name and URL of the remote repository
         @rtype tuple of (str, str)
         """
@@ -84,5 +85,5 @@
             password = self.passwordEdit.text()
             if password:
                 url.setPassword(password)
-        
+
         return self.nameEdit.text(), url.toString()

eric ide

mercurial