You are not logged in.

#1 2010-01-18 02:49:42

upsidaisium
Member
From: Vietnam
Registered: 2006-09-16
Posts: 263
Website

which graphics / drawing library..? (python)

background info: i've started making a little dice game in python. most of the guts of it are finished, so now i'd like to put a GUI on it. as a child, i knew this game as The Game of 5000. it's played very similarly to this game.

so my needs are pretty simple: i need to draw some dice (2D drawing). i don't know if i want to go to the trouble of animating the dice rolling, so i'll probably opt for something simpler; for example, a row of six dice that are sort of spinning in place until they turn up a number, very similar to how a slot machine looks.

i already know how to do basic GUI programming with pygtk and wxpython, but i think this would be an opportunity to learn something new. so does anybody have any recommendations about what library i could use to easily/elegantly/beautifully do this? should i be looking at cairo/pycairo? sdl? something else?

thanks in advance for the input.

Last edited by upsidaisium (2010-01-18 02:53:45)


I've seen young people waste their time reading books about sensitive vampires. It's kinda sad. But you say it's not the end of the world... Well, maybe it is!

Offline

#2 2010-01-18 03:34:46

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: which graphics / drawing library..? (python)

maybe pygame? It's definitely overkill for a dice game, but then, it's something new.

Or, do 3D dice; Soya3D is always fun. smile

Dusty

Offline

#3 2010-01-18 03:45:18

upsidaisium
Member
From: Vietnam
Registered: 2006-09-16
Posts: 263
Website

Re: which graphics / drawing library..? (python)

pygame certainly looks like a possibility. might as well play around with it a bit and see what happens smile


I've seen young people waste their time reading books about sensitive vampires. It's kinda sad. But you say it's not the end of the world... Well, maybe it is!

Offline

#4 2010-01-18 14:25:46

Jamp
Member
Registered: 2009-04-25
Posts: 10

Re: which graphics / drawing library..? (python)

Maybe try tkinter and canvas class, it is simple and bundled with python

Offline

#5 2010-01-18 14:32:19

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: which graphics / drawing library..? (python)

Jamp wrote:

Maybe try tkinter and canvas class, it is simple and bundled with python

If you think those are simple, wait till you try pygame wink

Offline

#6 2010-01-19 14:35:36

Jamp
Member
Registered: 2009-04-25
Posts: 10

Re: which graphics / drawing library..? (python)

I've used both (pygame more), and tkinter has some nice design in it, pygame is much more like c binding, and it's a bit inconsistent (just IMHO).

Offline

#7 2010-01-24 11:32:35

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: which graphics / drawing library..? (python)

pyglet is another alternative.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB