def initVars(self, *a, **ka): CustomizableCalObj.initVars(self, *a, **ka) if not self.optionsWidget: self.optionsWidget = gtk.VBox() #### if self.customizeWidth: value = self.getWidthValue() self.setWidthWidget(value) ### hbox = gtk.HBox() pack(hbox, gtk.Label(_('Width'))) spin = IntSpinButton(0, 999) pack(hbox, spin) spin.set_value(value) spin.connect('changed', self.widthSpinChanged) pack(self.optionsWidget, hbox) #### if self.customizeFont: hbox = gtk.HBox() pack(hbox, gtk.Label(_('Font Family'))) combo = FontFamilyCombo(hasAuto=True) combo.set_value(self.getFontValue()) pack(hbox, combo) combo.connect('changed', self.fontFamilyComboChanged) pack(self.optionsWidget, hbox) #### self.optionsWidget.show_all()
def __init__(self, controller, size=23): gtk.EventBox.__init__(self) self.initVars() ### self.size = size self.controller = controller CustomizableCalObj.initVars(self) self.build()
def __init__(self, controller, size=23): gtk.EventBox.__init__(self) self.initVars() ### self.size = size self.controller = controller CustomizableCalObj.initVars(self) self.build() ### self.show_all()