Repository: spyder-ide/spyder

Issue:
Github login window is resizing automatically
## Description

### What steps will reproduce the problem?

<!--- You can use Markdown here --->

When attempting to submit bug to GitHub the GitHub Login Windows Malfunctions:

https://imgur.com/a/gglXy97




## Versions

* Spyder version: 3.3.3 
* Python version: 3.7.2
* Qt version: 5.9.6
* PyQt5 version: 5.9.2
* Operating System: Windows 10

### Dependencies

```
pyflakes >=0.6.0  :  2.1.1 (OK)
pycodestyle >=2.3 :  2.5.0 (OK)
pygments >=2.0    :  2.3.1 (OK)
sphinx >=0.6.6    :  1.8.5 (OK)
rope >=0.9.4      :  0.12.0 (OK)
jedi >=0.9.0      :  0.13.3 (OK)
nbconvert >=4.0   :  5.4.1 (OK)
pandas >=0.13.1   :  0.24.2 (OK)
numpy >=1.7       :  1.16.2 (OK)
sympy >=0.7.3     :  1.3 (OK)
cython >=0.21     :  0.29.6 (OK)
qtconsole >=4.2.0 :  4.4.3 (OK)
IPython >=4.0     :  7.3.0 (OK)
matplotlib >=2.0.0:  3.0.3 (OK)
pylint >=0.25     :  2.3.1 (OK)
```



Discussion:
It seems the password window is resized automatically, I don't understand why.

@dalthviz, are you using Windows 10? If so, could you verify this?
@ccordoba12 although I'm not using Windows 10, I can reproduce this:

![github](https://user-images.githubusercontent.com/16781833/54659020-25254b00-4a9e-11e9-87d6-94d951d08430.gif)

Also the output of the console:

```
QWindowsWindow::setGeometry: Unable to set geometry 415x375+1839+177 on QWidgetW
indow/'DlgGitHubLoginClassWindow'. Resulting geometry:  415x2243+1839+177 (frame
: 8, 31, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 415x375, maximum size: 4
15x375).
QWindowsWindow::setGeometry: Unable to set geometry 415x375+1839+177 on QWidgetW
indow/'DlgGitHubLoginClassWindow'. Resulting geometry:  415x2243+1839+177 (frame
: 8, 31, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 415x375, maximum size: 4
15x375).
QWindowsWindow::setGeometry: Unable to set geometry 415x375+1839+177 on QWidgetW
indow/'DlgGitHubLoginClassWindow'. Resulting geometry:  415x2243+1839+177 (frame
: 8, 31, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 415x375, maximum size: 4
15x375).
QWindowsWindow::setGeometry: Unable to set geometry 415x375+1839+177 on QWidgetW
indow/'DlgGitHubLoginClassWindow'. Resulting geometry:  415x2243+1839+177 (frame
: 8, 31, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 415x375, maximum size: 4
15x375).
```
Ok, thanks @dalthviz for the confirmation. Please take a look at this one.

Resolving patch:
diff --git a/spyder/widgets/github/gh_login.py b/spyder/widgets/github/gh_login.py
--- a/spyder/widgets/github/gh_login.py
+++ b/spyder/widgets/github/gh_login.py
@@ -33,7 +33,7 @@ class DlgGitHubLogin(QDialog):
 
     def __init__(self, parent, username, password, token, remember=False,
                  remember_token=False):
-        super(DlgGitHubLogin, self).__init__(parent)
+        QDialog.__init__(self, parent)
 
         title = _("Sign in to Github")
         self.resize(415, 375)
@@ -91,10 +91,10 @@ def __init__(self, parent, username, password, token, remember=False,
         basic_layout.addSpacerItem(QSpacerItem(QSpacerItem(0, 8)))
         basic_layout.addWidget(basic_lbl_msg)
         basic_layout.addSpacerItem(
-            QSpacerItem(QSpacerItem(0, 1000, vPolicy=QSizePolicy.Expanding)))
+            QSpacerItem(QSpacerItem(0, 50, vPolicy=QSizePolicy.Expanding)))
         basic_layout.addLayout(basic_form_layout)
         basic_layout.addSpacerItem(
-            QSpacerItem(QSpacerItem(0, 1000, vPolicy=QSizePolicy.Expanding)))
+            QSpacerItem(QSpacerItem(0, 50, vPolicy=QSizePolicy.Expanding)))
         basic_auth.setLayout(basic_layout)
         self.tabs.addTab(basic_auth, _("Password Only"))
 
@@ -137,10 +137,10 @@ def __init__(self, parent, username, password, token, remember=False,
         token_layout.addSpacerItem(QSpacerItem(QSpacerItem(0, 8)))
         token_layout.addWidget(token_lbl_msg)
         token_layout.addSpacerItem(
-            QSpacerItem(QSpacerItem(0, 1000, vPolicy=QSizePolicy.Expanding)))
+            QSpacerItem(QSpacerItem(0, 50, vPolicy=QSizePolicy.Expanding)))
         token_layout.addLayout(token_form_layout)
         token_layout.addSpacerItem(
-            QSpacerItem(QSpacerItem(0, 1000, vPolicy=QSizePolicy.Expanding)))
+            QSpacerItem(QSpacerItem(0, 50, vPolicy=QSizePolicy.Expanding)))
         token_auth.setLayout(token_layout)
         self.tabs.addTab(token_auth, _("Access Token"))
 


Test patch: