def set_session_traffic(self,recived_bytes,sent_bytes):
     in_text = MSD.format_to_maximun_unit(recived_bytes,"GBytes","MBytes","Kbytes","bytes")
     out_text = MSD.format_to_maximun_unit(sent_bytes,"GBytes","MBytes","Kbytes","bytes")
     total_text = MSD.format_to_maximun_unit((sent_bytes+recived_bytes), "GBytes","MBytes","Kbytes","bytes")
     self.consum_as_recv_label.set_text(in_text) 
     self.consum_as_send_label.set_text(out_text)
     self.consum_as_total_label.set_text(total_text)
 def set_acumulated_traffic(self,bytes, roaming):
     in_text = MSD.format_to_maximun_unit(bytes,"GB","MB","KB","Bytes")
     if roaming == False:
         self.consum_total_traffic_label.set_text(in_text)
         self.consum_total_traffic_label2.set_text(in_text)
     else:
         self.consum_total_ro_traffic_label.set_text(in_text)
         self.consum_total_ro_traffic_label2.set_text(in_text)
	def set_session_traffic(self,bytes):
		self.traffic_label.set_markup('<span foreground="#003c86">%s</span>' % MSD.format_to_maximun_unit(bytes,"GB","MB","KB","Bytes"))
 def set_acumulated_traffic(self,bytes):
     in_text = MSD.format_to_maximun_unit(bytes,"GBytes","MBytes","Kbytes","bytes")
     self.consum_total_traffic_label.set_text(in_text)