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)) )
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)) )
def update_disk(self, used, total): self.menu_items['disk'].set_label( self.LABEL_DISK.format(_h(used), _h(total)) )
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)))
def update_disk(self, used, total): self.menu_items['disk'].set_label( self.LABEL_DISK.format(_h(used), _h(total)))
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)))