def onDateChange(self, *a, **kw): CustomizableCalObj.onDateChange(self, *a, **kw) for i, label in enumerate(self.labelBox.get_children()): text = ui.cell.format(ud.dateFormatBin, label.mode) if i==0: text = '<b>%s</b>'%text label.set_label(text)
def onDateChange(self, *a, **kw): CustomizableCalObj.onDateChange(self, *a, **kw) for i, label in enumerate(self.labelBox.get_children()): text = ui.cell.format(ud.dateFormatBin, label.mode) if i == 0: text = '<b>%s</b>' % text label.set_label(text)
def onDateChange(self, *a, **kw): from scal2.season import getSeasonNamePercentFromJd CustomizableCalObj.onDateChange(self, *a, **kw) name, frac = getSeasonNamePercentFromJd(ui.cell.jd) if rtl: percent = "%d%%" % (frac * 100) else: percent = "%%%d" % (frac * 100) self.set_text(_(name) + " - " + textNumEncode(percent, changeDot=True)) self.set_fraction(frac)
def onDateChange(self, *a, **kw): CustomizableCalObj.onDateChange(self, *a, **kw) name, frac = getSeasonNamePercentFromJd(ui.cell.jd) if rtl: percent = '%d%%'%(frac*100) else: percent = '%%%d'%(frac*100) self.set_text( _(name) + ' - ' + locale_man.textNumEncode( percent, changeDot=True, ) ) self.set_fraction(frac)
def onDateChange(self, *a, **kw): from scal2.season import getSeasonNamePercentFromJd CustomizableCalObj.onDateChange(self, *a, **kw) name, frac = getSeasonNamePercentFromJd(ui.cell.jd) if rtl: percent = '%d%%'%(frac*100) else: percent = '%%%d'%(frac*100) self.set_text( _(name) + ' - ' + textNumEncode( percent, changeDot=True, ) ) self.set_fraction(frac)
def onDateChange(self, *a, **kw): CustomizableCalObj.onDateChange(self, *a, **kw) self.setText(ui.cell.pluginsText)
def onDateChange(self, *a, **kw): CustomizableCalObj.onDateChange(self, *a, **kw) self.queue_draw()