diff options
author | Radek Vykydal <rvykydal@redhat.com> | 2009-07-01 15:20:49 +0200 |
---|---|---|
committer | Radek Vykydal <rvykydal@redhat.com> | 2009-07-02 13:39:45 +0200 |
commit | 8b2477c29748728f883b37a3fd62ce9fa43e5d98 (patch) | |
tree | a270095d8128fa7e4fe58a9a2b9df592c6959c50 /iw/network_gui.py | |
parent | 60e509f7a6a4403dd0a5fa44675a318e0d8a4739 (diff) | |
download | anaconda-8b2477c29748728f883b37a3fd62ce9fa43e5d98.tar.gz anaconda-8b2477c29748728f883b37a3fd62ce9fa43e5d98.tar.xz anaconda-8b2477c29748728f883b37a3fd62ce9fa43e5d98.zip |
Set focus on hostname entry in network UI screen (#494135)
Diffstat (limited to 'iw/network_gui.py')
-rw-r--r-- | iw/network_gui.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/iw/network_gui.py b/iw/network_gui.py index 9f5ced738..ce2c879f0 100644 --- a/iw/network_gui.py +++ b/iw/network_gui.py @@ -44,13 +44,16 @@ class NetworkWindow(InstallWindow): self.hostnameEntry.set_text(self.hostname) self.hostnameEntry.connect("activate", lambda w: self.ics.setGrabNext(1)) - self.hostnameEntry.grab_focus() + self.hostnameEntry.connect("map-event", self.setFocus) # load the icon gui.readImageFromFile("network.png", image=self.icon) return self.align + def setFocus(self, area, data): + self.hostnameEntry.grab_focus() + def hostnameError(self): self.hostnameEntry.grab_focus() raise gui.StayOnScreen |