Ejemplo n.º 1
0
 def align_newyear_ui_with_calendar(self, cal):
     if calendar_has_fixed_newyear(cal):
         LOG.debug("new year disabled for cal {0}".format(cal))
         self.new_year.set_sensitive(0)
         self.new_year.set_text('')
     else:
         LOG.debug("new year enabled for cal {0}".format(cal))
         self.new_year.set_sensitive(1)
Ejemplo n.º 2
0
 def align_newyear_ui_with_calendar(self, cal):
     if calendar_has_fixed_newyear(cal):
         LOG.debug("new year disabled for cal {0}".format(cal))
         self.new_year.set_sensitive(0)
         self.new_year.set_text('')
     else:
         LOG.debug("new year enabled for cal {0}".format(cal))
         self.new_year.set_sensitive(1)