[X2Go-Commits] [pyhoca-gui] 02/04: Properly set focus in broker logon window (default: password, if no username provided: username, if no URL provided: broker-URL field).
git-admin at x2go.org
git-admin at x2go.org
Sat Apr 5 09:00:54 CEST 2014
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository pyhoca-gui.
commit 79b118b6f5f83a22acd09979722e39a1c403685b
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Sat Apr 5 08:56:36 2014 +0200
Properly set focus in broker logon window (default: password, if no username provided: username, if no URL provided: broker-URL field).
---
debian/changelog | 2 ++
pyhoca/wxgui/brokerlogon.py | 9 ++++-----
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index e883e27..82486c6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -36,6 +36,8 @@ pyhoca-gui (0.5.0.0-0x2go1) UNRELEASED; urgency=low
- Handle "Connection refused" errors during broker login attempts.
- Gracefully handle "Connection refused" errors after a broker login has already
been successful.
+ - Properly set focus in broker logon window (default: password, if no username
+ provided: username, if no URL provided: broker-URL field).
- Update English / German translation.
-- Mike Gabriel <mike.gabriel at das-netzwerkteam.de> Wed, 08 Jan 2014 21:28:37 +0100
diff --git a/pyhoca/wxgui/brokerlogon.py b/pyhoca/wxgui/brokerlogon.py
index 5fb58ad..e423f49 100644
--- a/pyhoca/wxgui/brokerlogon.py
+++ b/pyhoca/wxgui/brokerlogon.py
@@ -74,6 +74,10 @@ class PyHocaGUI_BrokerDialogBoxPassword(wx.Dialog):
self.userLbl = wx.StaticText(self, wx.ID_ANY, _(u'Username')+':', size=(-1, -1))
self.userTxt = wx.TextCtrl(self, wx.ID_ANY, '', style=wx.TE_PROCESS_ENTER, size=(240, -1))
+ self.passwordLbl = wx.StaticText(self, wx.ID_ANY, _(u'Password')+':', size=(-1, -1))
+ self.passwordTxt = wx.TextCtrl(self, wx.ID_ANY, '', style=wx.TE_PROCESS_ENTER|wx.TE_PASSWORD, size=(240, -1))
+ self.passwordTxt.SetFocus()
+
if self._PyHocaGUI.session_profiles.get_broker_username():
self.userTxt.SetValue(self._PyHocaGUI.session_profiles.get_broker_username())
else:
@@ -91,11 +95,6 @@ class PyHocaGUI_BrokerDialogBoxPassword(wx.Dialog):
else:
self.brokerTxt.SetValue(self._PyHocaGUI.session_profiles.get_broker_url())
-
- self.passwordLbl = wx.StaticText(self, wx.ID_ANY, _(u'Password')+':', size=(-1, -1))
- self.passwordTxt = wx.TextCtrl(self, wx.ID_ANY, '', style=wx.TE_PROCESS_ENTER|wx.TE_PASSWORD, size=(240, -1))
- self.passwordTxt.SetFocus()
-
self.loginBtn = wx.Button(self, wx.ID_OK, _(u'Authenticate'), )
self.loginBtn.SetDefault()
self.cancelBtn = wx.Button(self, wx.ID_CANCEL, _(u'Cancel'), )
--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/pyhoca-gui.git
More information about the x2go-commits
mailing list