예제 #1
0
	def update_network(self, receiving, sending):
		self.menu_items['receiving'].set_label(
			self.LABEL_RECEIVING.format(_h(receiving))
		)
		self.menu_items['sending'].set_label(
			self.LABEL_SENDING.format(_h(sending))
		)
예제 #2
0
	def update_memswap(self, mem_used, mem_total, swap_used, swap_total):
		self.menu_items['memory'].set_label(
			self.LABEL_MEMORY.format(_h(mem_used), _h(mem_total))
		)
		self.menu_items['swap'].set_label(
			self.LABEL_SWAP.format(_h(swap_used), _h(swap_total))
		)
예제 #3
0
	def update_disk(self, used, total):
		self.menu_items['disk'].set_label(
			self.LABEL_DISK.format(_h(used), _h(total))
		)
예제 #4
0
 def update_network(self, receiving, sending):
     self.menu_items['receiving'].set_label(
         self.LABEL_RECEIVING.format(_h(receiving)))
     self.menu_items['sending'].set_label(
         self.LABEL_SENDING.format(_h(sending)))
예제 #5
0
 def update_disk(self, used, total):
     self.menu_items['disk'].set_label(
         self.LABEL_DISK.format(_h(used), _h(total)))
예제 #6
0
 def update_memswap(self, mem_used, mem_total, swap_used, swap_total):
     self.menu_items['memory'].set_label(
         self.LABEL_MEMORY.format(_h(mem_used), _h(mem_total)))
     self.menu_items['swap'].set_label(
         self.LABEL_SWAP.format(_h(swap_used), _h(swap_total)))