diff options
author | Matt Wilson <msw@redhat.com> | 2000-02-02 23:27:30 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-02-02 23:27:30 +0000 |
commit | b9c4e4bccdbf337335727256e3be22f109497bff (patch) | |
tree | 75718ef69958dbfb4373a58ac121b591982aa5b2 /iw | |
parent | 0a8af5f27be7422d62d3766054df404b85d6e962 (diff) | |
download | anaconda-b9c4e4bccdbf337335727256e3be22f109497bff.tar.gz anaconda-b9c4e4bccdbf337335727256e3be22f109497bff.tar.xz anaconda-b9c4e4bccdbf337335727256e3be22f109497bff.zip |
don't reset the timezone thing too much
Diffstat (limited to 'iw')
-rw-r--r-- | iw/timezone.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/iw/timezone.py b/iw/timezone.py index 489ac686e..f05d0378c 100644 --- a/iw/timezone.py +++ b/iw/timezone.py @@ -95,6 +95,10 @@ class TimezoneWindow (InstallWindow): else: self.ics.setNextEnabled (TRUE) + def setcurrent (self, widget, area): + self.tz.setcurrent (self.default) + widget.disconnect (self.id) + def getScreen (self): try: f = open ("/usr/share/anaconda/pixmaps/map480.png") @@ -125,8 +129,8 @@ class TimezoneWindow (InstallWindow): if (string.find (self.default, "UTC") != -1): self.default = "America/New_York" - self.list.connect ("draw", lambda widget, area, self=self: - self.tz.setcurrent (self.default)) + self.id = self.list.connect ("draw", self.setcurrent) + self.nb.connect ("realize", lambda widget, self=self: self.nb.set_page (self.old_page)) |