summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorpnfisher <pnfisher>1999-08-30 20:27:22 +0000
committerpnfisher <pnfisher>1999-08-30 20:27:22 +0000
commit00fce7182b84028d29082eadbdf2c2edfe0d5bb2 (patch)
treee2ad90cfd5fd6754dccbf37b1326a3aea463c0a3 /iw
parentb5b1b594468804f9afafbc76176d9c48c8f1b7ad (diff)
downloadanaconda-00fce7182b84028d29082eadbdf2c2edfe0d5bb2.tar.gz
anaconda-00fce7182b84028d29082eadbdf2c2edfe0d5bb2.tar.xz
anaconda-00fce7182b84028d29082eadbdf2c2edfe0d5bb2.zip
Mostly complete TimeZone window.
Diffstat (limited to 'iw')
-rw-r--r--iw/timezone.py86
1 files changed, 81 insertions, 5 deletions
diff --git a/iw/timezone.py b/iw/timezone.py
index 2fd5deef4..efc1bc16f 100644
--- a/iw/timezone.py
+++ b/iw/timezone.py
@@ -30,6 +30,45 @@ class TimezoneWindow (InstallWindow):
ics.setNextEnabled (1)
ics.setHTML ("<HTML><BODY>Select your current location</BODY></HTML>")
+ self.timeZones = ("-12:00",
+ "-11:00",
+ "-10:00",
+ "-09:30",
+ "-09:00",
+ "-08:30",
+ "-08:00",
+ "-07:00",
+ "-06:00",
+ "-05:00",
+ "-04:00",
+ "-03:30",
+ "-03:00",
+ "-02:00",
+ "-01:00",
+ "",
+ "+01:00",
+ "+02:00",
+ "+03:00",
+ "+03:30",
+ "+04:00",
+ "+04:30",
+ "+05:00",
+ "+05:30",
+ "+06:00",
+ "+06:30",
+ "+07:00",
+ "+08:00",
+ "+09:00",
+ "+09:30",
+ "+10:00",
+ "+10:30",
+ "+11:00",
+ "+11:30",
+ "+12:00",
+ "+13:00",
+ "+14:00")
+
+
def getScreen (self):
try:
f = open ("/usr/share/anaconda/map480.png")
@@ -39,14 +78,16 @@ class TimezoneWindow (InstallWindow):
else:
path = "/usr/share/anaconda/map480.png"
- mainBox = GtkVBox (FALSE, 0)
+ nb = GtkNotebook ()
+
+ mainBox = GtkVBox (FALSE, 5)
tz = timezonemap.new (path)
map = Map (tz.map)
list = List (tz.citylist)
status = Status (tz.statusbar)
views = Option (tz.views)
- label = GtkLabel (_("View"))
+ label = GtkLabel (_("View:"))
hbox = GtkHBox (FALSE, 5)
hbox.pack_start (label, FALSE)
hbox.pack_start (views, FALSE)
@@ -56,8 +97,43 @@ class TimezoneWindow (InstallWindow):
frame.add (map)
mainBox.pack_start (hbox, FALSE)
- mainBox.pack_start (frame, FALSE)
- mainBox.pack_start (status, FALSE)
+ box = GtkVBox (FALSE, 0)
+ box.pack_start (frame, FALSE)
+ box.pack_start (status, FALSE)
+ mainBox.pack_start (box, FALSE)
mainBox.pack_start (list, TRUE)
- return mainBox
+
+ tzBox = GtkVBox (FALSE)
+ sw = GtkScrolledWindow ()
+ sw.set_policy (POLICY_AUTOMATIC, POLICY_AUTOMATIC)
+ list = GtkCList (1)
+ list.set_selection_mode (SELECTION_BROWSE)
+ list.freeze ()
+ for zone in self.timeZones:
+ list.append (("UTC %s" % (zone,),))
+ list.columns_autosize ()
+ list.thaw ()
+ list.select_row (15, 0)
+ sw.add (list)
+ tzBox.pack_start (sw)
+ align = GtkAlignment (0, 0)
+ daylightCB = GtkCheckButton (_("Use Daylight Saving Time"))
+ align.add (daylightCB)
+ tzBox.pack_start (align, FALSE)
+ tzBox.set_border_width (5)
+
+
+ mainBox.set_border_width (5)
+ nb.append_page (mainBox, GtkLabel (_("Location")))
+ nb.append_page (tzBox, GtkLabel (_("UTC Offset")))
+
+ box = GtkVBox (FALSE, 5)
+ box.pack_start (nb)
+ systemUTC = GtkCheckButton (_("System clock uses UTC"))
+ systemUTC.set_active (TRUE)
+ align = GtkAlignment (0, 0)
+ align.add (systemUTC)
+ box.pack_start (align, FALSE)
+ box.set_border_width (5)
+ return box