[Tutor] Text problem

EUGENE ASTLEY erastley at charter.net
Tue Jun 7 21:22:51 CEST 2005


Python, pygames problem.
At the end of my game, I go back to the desk top after displaying the
score of the player, as follows:
Def game_over(self)
Games.Message(screen = self.screen,
            X = 400, y = 400
            Text + "Your Score is  " + str(Game.score_value),
            Size = 60, color = color.green,
            Lifetime = 1000, after_death = self.screen.quit()
 
This works well but I would like to have several lines of text. The
triple quote method does not work. How can I get several lines of text
into the message?
I can't find the syntax that is legal for the games.message command.
Gene 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20050607/422fd7b6/attachment.html


More information about the Tutor mailing list