'Setter to be used as a Qt slot.
Args:
x: The x percentage (int), currently ignored.
y: The y percentage (int)'

@pyqtSlot(int, int)
def set_perc(self, x, y):

    if (y == 0):
        self.setText('[top]')
    elif (y == 100):
        self.setText('[bot]')
    elif (y is None):
        self.setText('[???]')
    else:
        self.setText('[{:2}%]'.format(y))
