def setDisplayStatus(self, position, status):
        str = self.errorListbox.get(position)
        parts = str.split(': ', 1)
        if len(parts) == 2:
            if parts[0] == 'FAILED' or parts[0] == 'ERROR':
                return
            else:
                str = parts[1]
        str = status + ': ' + str
        self.errorListbox.insert(position, str)
        self.errorListbox.delete(position + 1)
        if status == 'RUNNING':
            self.errorListbox.itemconfig(position, fg='blue')
        elif status == 'FAILED':
            self.errorListbox.itemconfig(position, fg='red')
        elif status == 'ERROR':
            self.errorListbox.itemconfig(position, fg='red')
        elif status == 'SUCCESS':
            self.errorListbox.itemconfig(position, fg='darkgreen')
        if 0 > position:
            self.errorListbox.select_clear(position-1)
        self.errorListbox.select_set(position)
        self.errorListbox.see(min(position+4, self.errorListbox.size()) )
        pass
dataset/ETHPy150Open radekstepan/FlaskBudget/tests_gui.py/EnhancedGUIRunner.setDisplayStatus/swapped operands of `>`