             pass      def rect(self, text_id, mousepos):         x, y, width, height = self.dict_all[text_id]         if ((x + width) > mousepos[0] > x) and ((y + height) > mousepos[0] > y):             print("yes")             return True         else:             return False      def getId(self, text_id):         self.currentId = text_id      def nothing(self):         return False      def main(self, events, mousepos, id):         for event in events:             if event.type == pygame.QUIT:                 exit()             if event.type == pygame.MOUSEBUTTONDOWN:                 self.pressed = False                 if self.rect(id, mousepos):                     self.pressed = True                 if event.type == pygame.KEYDOWN:                     if event.key == pygame.K_a:                         if self.pressed:                             print("reached")                             self.dict_text[id].append("a")                         