Reflections on software development

Very python oriented, keeping an eye on the rest of the world though :-)

Archive for the ‘Python’ Category

WSGI and Pylons

Posted by goofy4u on December 9, 2006

Hi everybody,

It has been a long while since I’ve posted here… To be honest it has been a while since I have used or tried out new Python stuff. I have been busy with all kinds of programming languages, Java for instance, even with LISP.

Well now the time has come, because there is Pylons, a wsgi (visit the wsgi wiki for more info) framework. Everything you need to know about Pylons can be found at www.pylonshq.com, so certainly go check it out.
I’m currently evaluating the framework (following their online tutorials) and reading some documentation. I will share my progress in this with you people as I go along.

Posted in Python | 1 Comment »

Python and design patterns – an example using pygame

Posted by goofy4u on March 10, 2006

A very usefull guide I recently discovered can be found over here.  It teaches multiple things at the same time : using python, introducing some design patterns ( the ones found in the model view controller pattern ) and at the same time developing a game using pygame…  What do you want more to get you started?  I will keep you informed about this guide.  I wish to thank the author for the nice job he did so far.

Posted in Design Patterns, Python | Leave a Comment »

My first pygame experience

Posted by goofy4u on March 9, 2006

This weekend I tried out a little tutorial with the pygame python library. Everything worked ok except for the window size on startup. On WinXP you have to do some extra trick before the pygame initialization. It isn’t documented explicitly but I figured out it had to be the reason that my window size was minimized on starting up, only after dragging and clicking the window it got to the normal size. But when you add the following extra code you get it right immediately :

if sys.platform == “win32”:
os.environ[‘SDL_VIDEODRIVER’] = ‘windib’

pygame.display.init()
pygame.init()
screen = pygame.display.set_mode((200,100))
for event in pygame.event.get():

# and so on …

Posted in Python | Leave a Comment »