def handle(self, event): gd.BoardGame.handle(self, event) # send event handling up if event.type == pygame.MOUSEBUTTONUP and event.button == 1: self.draw_lines() self.mainloop.redraw_needed[0] = True