Example #1
0
 def __init__(self, wcal):
     gtk.HBox.__init__(self)
     self.initVars()
     self.wcal = wcal
     self.updateCols()
     self.updateDir()
     self.show()
     #####
     optionsWidget = gtk.VBox()
     ##
     hbox = gtk.HBox()
     hbox.pack_start(gtk.Label(_('Width')), 0, 0)
     spin = IntSpinButton(0, 99)
     hbox.pack_start(spin, 0, 0)
     spin.set_value(ui.wcalDaysOfMonthColWidth)
     spin.connect('changed', self.widthSpinChanged)
     optionsWidget.pack_start(hbox, 0, 0)
     ##
     hbox = gtk.HBox()
     hbox.pack_start(gtk.Label(_('Direction')), 0, 0)
     combo = DirectionComboBox()
     hbox.pack_start(combo, 0, 0)
     combo.setValue(ui.wcalDaysOfMonthColDir)
     combo.connect('changed', self.dirComboChanged)
     optionsWidget.pack_start(hbox, 0, 0)
     ##
     optionsWidget.show_all()
     self.optionsWidget = optionsWidget
Example #2
0
 def __init__(self, wcal):
     gtk.HBox.__init__(self)
     self.initVars()
     self.wcal = wcal
     self.updateCols()
     self.updateDir()
     self.show()
     #####
     hbox = gtk.HBox()
     pack(hbox, gtk.Label(_('Direction')))
     combo = DirectionComboBox()
     pack(hbox, combo)
     combo.setValue(ui.wcal_daysOfMonth_dir)
     combo.connect('changed', self.dirComboChanged)
     pack(self.optionsWidget, hbox)
     ####
     frame = gtk.Frame(_('Calendars'))
     self.typeParamsVbox = gtk.VBox()
     frame.add(self.typeParamsVbox)
     frame.show_all()
     pack(self.optionsWidget, frame)
     self.updateTypeParamsWidget()## FIXME
     ####
     self.optionsWidget.show_all()