Umm.. Ithought about building that interface with Glade, but I would
like to have an interface window more like the game, I mean, doing
the gui with that, the window generated has a serious windows look-a-
like and I would like to know if doing this simply gui more like the
game looks, I mean, more like the videogames where you don't have a
windows like interface to choose the level or to enter your nick
before playing.
If it is not possible with pygame, i'll do it with glade, but i want
to know first if it is possible. Is a kids game and they will be more
interested in a funny interface with cool fonts and cartoons than in
a serious one.
Thanks for your quick answer, Ian ;)
El 11/02/2008, a las 23:32, Ian Mallett escribió:
The simplest way to do this is to use the console window.
name = raw_input("Enter your name: ") -> name = "Jouley" (or
whatever)
Store the names and questions in a list and use random.choice() to
pick one at random.
import random
questions = ["How old are you?",
"How many is 3 + 2?",
"Explain the Wurtz Reaction."]
print random.choice(questions) -> "Explain the Wurtz Reaction." (Or
something).
Making the GUI in Pygame is significantly more complex. You can
render font and get keypresses and the like. wxPython is also an
option.
Ian