   [Pyhton] Screen is acting up.
  Whenever I load the program, even though i have it set to a white background, if shows up black, when i exit the program it shows the white background and the red line drawn can someone help me?import pygamepygame.init()def drawStuff(background):pygame.draw.line(background, (255,0,0), (5,100), (100,100))def main():screen = pygame.display.set_mode((640,480))pygame.display.set_caption("Drawing Module")background = pygame.Surface(screen.get_size())background = background.convert()background.fill((255,255,255))drawStuff(background)clock = pygame.time.Clock()run = Truewhile run:clock.tick(30)for event in pygame.event.get():if event.type == pygame.QUIT:run = Falseelif event.type == pygame.MOUSEBUTTONUP:print pygame.mouse.get_pos()screen.blit(background, (0,0))pygame.display.flip()if __name__ == "__main__":main()
  Your blit and display flip calls are done outside - and after - the while loop. Indent them some more so they fall within the while loop scope.   ;  Thanks can't believed I missed that.   