My mistake, this is not error, this is system mesage. For close window used pygame.quit() -- View this message in context: http://pygame-users.25799.x6.nabble.com/I-can-not-close-the-window-tp1663p1664.html Sent from the pygame-users mailing list archive at Nabble.com.