[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Keyboard inputs & file navigator



marta sanz wrote:
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.

It's certainly possible, although doing it with the facilities
provided directly by pygame is a little tedious. You would
need to read keystroke events, maintain an input buffer, and
take care of updating the screen whenever a character is
typed.

There are a few GUI libraries available for pygame that you
might like to look at. Some are listed here:

  http://www.pygame.org/wiki/gui

There's also one that I wrote:

  http://www.cosc.canterbury.ac.nz/greg.ewing/python/Albow/

It has an extremely minimal appearance, which may be a good
thing for you as it wouldn't detract from whatever appearance
you want to give your game.

--
Greg