Exemplo n.º 1
0
 def set_times_label(self, position):
     """
     Set the times label string based on current and
     total duration.
     """
     lbl = format_time(position) + " / " + format_time(self.duration)
     self.timelabel.set_label(lbl)
Exemplo n.º 2
0
def length_render(column, cell_renderer, model, iter):
    val = format_time(model.get_value(iter, 3))
    cell_renderer.set_property('text', val)
    return