def __init__(self, font_size, color_name, x_pos_percent, y_pos_percent, name=None, font_weight=""): """Initialize Clock label""" Label.__init__(self, font_size, color_name, x_pos_percent, y_pos_percent, name = None, font_weight = font_weight) self._24_hour_clock = True self.update_clock_label() gobject.timeout_add(1000 * 60, self.update_clock_label)
def __init__(self, font_size, color_name, x_pos_percent, y_pos_percent, name=None, font_weight=""): """Initialize Clock label""" Label.__init__(self, font_size, color_name, x_pos_percent, y_pos_percent, name=None, font_weight=font_weight) self._24_hour_clock = True self.update_clock_label() gobject.timeout_add(1000 * 60, self.update_clock_label)