summaryrefslogtreecommitdiffstats
path: root/gnome-map/pytimezone
blob: 9fb9cd3b015b4179bf3f04bfb48e6f35eeecfb1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/python

import sys
sys.path.append ("../isys")
from gnome.ui import *
import isys
import timezonemap
from gtk import *
import GdkImlib

class Map (GnomeCanvas):
    def __init__ (self, map):
        self._o = map

class List (GtkScrolledWindow):
    def __init__ (self, list):
        self._o = list

class Status (GtkStatusbar):
    def __init__ (self, bar):
        self._o = bar

class Option (GtkOptionMenu):
    def __init__ (self, option):
        self._o = option

win = GtkWindow()
vbox = GtkVBox (FALSE, 10)

tz = timezonemap.new ("map480.png")
map = Map (tz.map)
list = List (tz.citylist)
option = Option (tz.views)
status = Status (tz.statusbar)
vbox.pack_start (option, FALSE)
vbox.pack_start (map, FALSE)
vbox.pack_start (status, FALSE)
vbox.pack_start (list)
win.add (vbox)
win.show_all ()

mainloop ()