summaryrefslogtreecommitdiffstats
path: root/iw/account_gui.py
diff options
context:
space:
mode:
authorbfox <bfox>2000-12-01 15:27:01 +0000
committerbfox <bfox>2000-12-01 15:27:01 +0000
commitdfb121b4a4c8ab1d37a1740d7bf2c3a5ccad4f03 (patch)
tree72e3e76ff7fdde37aacf6b67e869e9b5398ec788 /iw/account_gui.py
parent300173a31687d24f15fa515791b06c8d3dd1b6db (diff)
downloadanaconda-dfb121b4a4c8ab1d37a1740d7bf2c3a5ccad4f03.tar.gz
anaconda-dfb121b4a4c8ab1d37a1740d7bf2c3a5ccad4f03.tar.xz
anaconda-dfb121b4a4c8ab1d37a1740d7bf2c3a5ccad4f03.zip
Fixed bug #21030. Added a setFocus routine so that self.pw graps the keyboard focus when entering the screen.
Diffstat (limited to 'iw/account_gui.py')
-rw-r--r--iw/account_gui.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/iw/account_gui.py b/iw/account_gui.py
index 808b2e39b..fbebf1544 100644
--- a/iw/account_gui.py
+++ b/iw/account_gui.py
@@ -160,6 +160,9 @@ class AccountWindow (InstallWindow):
text[0] not in [ '.', '-', '_' ]):
widget.emit_stop_by_name ("insert-text")
+ def setFocus (self, area, data):
+ self.pw.grab_focus ()
+
def getScreen (self):
self.passwords = {}
self.editingUser = None
@@ -189,6 +192,7 @@ class AccountWindow (InstallWindow):
self.pw = GtkEntry (128)
self.pw.connect ("activate", forward)
self.pw.connect ("changed", self.rootPasswordsMatch)
+ self.pw.connect ("draw", self.setFocus)
self.pw.set_visibility (FALSE)
self.confirm = GtkEntry (128)
self.confirm.connect ("activate", forward)
@@ -308,4 +312,6 @@ class AccountWindow (InstallWindow):
self.userOkay()
box.set_border_width (5)
+
+
return box