'Determine which icon is clicked according to its position.'

def get_icon_in_position(self, x, y):

    for i in self.progs:
        if (x < ((self.icons_offsets[i] + self.icons_widths[self.progs[i]['name']]) + (self.padding / 2))):
            return i
