def __init__(self): hildon.Window.__init__(self) self.set_title("PyHildon - Weekday Picker") self.vbox = gtk.VBox(True) self.add(self.vbox) self.weekdayPicker = hildon.WeekdayPicker() self.vbox.pack_start(self.weekdayPicker) change_day_box = gtk.HBox (False) self.vbox.pack_start (change_day_box) self.change_buttons = gtk.HBox(True) self.vbox.pack_start(self.change_buttons) obj = gtk.HSeparator () self.vbox.pack_start(obj) self.back_button = gtk.Button ("Back") self.vbox.pack_start(self.back_button) obj = gtk.Button ("Set All") obj.connect ('clicked', self.onSetAll) self.change_buttons.pack_start (obj) obj = gtk.Button ("Unset All") obj.connect ('clicked', self.onUnsetAll) self.change_buttons.pack_start (obj) self.day_entry = gtk.Entry() obj = gtk.Button ("Set") obj.connect ('clicked', self.onSetDay) change_day_box.pack_start (obj) obj = gtk.Button ("Unset") obj.connect ('clicked', self.onUnsetDay) change_day_box.pack_start (obj) obj = gtk.Button ("Toggle") obj.connect ('clicked', self.onToggleDay) change_day_box.pack_start (obj) change_day_box.pack_start (self.day_entry)
def setUp(self): self.obj = hildon.WeekdayPicker()