pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Pygcurse

Pygcurse - 1

Al Sweigart (alsweigart)

Tags:

Description

"We already have a curses module for Python."

Yes. But unfortunately, the curses module that comes with the Python standard library does not work on Windows. The excellent Console module from effbot provides curses-like features, but it only runs on Windows and not Mac/Linux. By using Pygame, Pygcurse is able to run on all platforms. Also, since this curses-like module is built on top of Pygame, your programs are not strictly limited strictly to text characters. You can use all the normal Pygame drawing and graphics functions, as well as any libraries made for Pygame.

Pygcurse provides several benefits over normal text-based stdio programs:

1. Color text and background.

2. The ability to move the cursor and print text anywhere in the console window.

3. The ability to make console apps that make use of the mouse.

4. The ability to have programs respond to individual key presses, instead of waiting for the user to type an entire string and press enter (as is the case with input()/raw_input()).

5. The ability to use any font and any character in those fonts.

6. Since the console window that Pygcurse uses is just a Pygame surface object, additional drawing and transformations can be applied to it. Multiple surfaces can also be used in the same program.

Pygcurse also provides some additional features that curses normally doesn't, such as tinting, shadows, textboxes, and line drawing functions. Pygcurse requires Pygame to be installed.

Pygame can be downloaded from http://pygame.org. Pygcurse can be used with either Python 2 or Python 3.

Links

Home Page: http://inventwithpython.com/pygcurse/
Source: http://inventwithpython.com/pygcurse/pygcurse_src.zip

Screenshot


click to view original size

Releases

Pygcurse - 1 - Sep 10, 2011

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

September 11, 2011 11:10am - Donpachi - nickname: (donpachi) - 5/5
Oh my. This looks like a really good library.
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Jul 28, 2014

Jul 22, 2014

Jul 21, 2014

Jul 20, 2014

Jul 19, 2014

Jul 15, 2014

Jul 10, 2014

Jul 9, 2014

Jun 27, 2014



Jun 24, 2014

... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)