def Update(self):
events = pygame.event.get()
for event in events:
if event.type == pygame.QUIT:
sys.exit()
for button in self.Buttons:
res = button.Update(events)
if (res != button):
return res
return self