def set_session_time(self,seconds): rounded_secs = int(seconds) self.time_label.set_markup('<span foreground="#003c86">%s</span>' % MSD.seconds_to_time_string(rounded_secs))
def set_session_time(self,seconds): rounded_secs = int(seconds) self.consum_as_conntime_label.set_text(MSD.seconds_to_time_string(rounded_secs))
def set_acumulated_time(self,seconds): rounded_secs = int(seconds) self.consum_total_conntime_label.set_text(MSD.seconds_to_time_string(rounded_secs))
def set_acumulated_time(self,seconds, roaming): rounded_secs = int(seconds) if roaming == False: self.consum_total_conntime_label.set_text(MSD.seconds_to_time_string(rounded_secs)) else: self.consum_total_ro_conntime_label.set_text(MSD.seconds_to_time_string(rounded_secs))