def __init__(self): DayOccurrenceView.__init__(self) self.maxHeight = ui.eventViewMaxHeight self.optionsWidget = gtk.HBox() ### hbox = gtk.HBox() spin = IntSpinButton(1, 9999) spin.set_value(ui.eventViewMaxHeight) spin.connect('changed', self.heightSpinChanged) hbox.pack_start(gtk.Label(_('Maximum Height')), 0, 0) hbox.pack_start(spin, 0, 0) self.optionsWidget.pack_start(hbox, 0, 0) ### self.optionsWidget.show_all()
def __init__(self): gtk.Dialog.__init__(self) self.initVars() ud.windowList.appendItem(self) ### self.set_title(_('Day Info')) self.connect('delete-event', self.onClose) self.vbox.set_spacing(15) ### dialog_add_button(self, gtk.STOCK_CLOSE, _('Close'), 0, self.onClose) dialog_add_button(self, '', _('Previous'), 1, self.goBack) dialog_add_button(self, '', _('Today'), 2, self.goToday) dialog_add_button(self, '', _('Next'), 3, self.goNext) ### self.allDateLabels = AllDateLabelsVBox() self.pluginsTextView = PluginsTextView() self.eventsView = DayOccurrenceView() ### for item in (self.allDateLabels, self.pluginsTextView, self.eventsView): self.appendItem(item) ### exp = gtk.Expander(item.desc) exp.add(item) exp.set_expanded(True) pack(self.vbox, exp) self.vbox.show_all()
def __init__(self): DayOccurrenceView.__init__(self) self.maxHeight = ui.eventViewMaxHeight
def __init__(self): DayOccurrenceView.__init__(self) self.maxHeight = ui.eventViewMaxHeight