python 2.5, leopard, and graphics
Posted: 02 September 2008 06:18 PM   [ Ignore ]
Rank
Joined  2008-05-17
Total Posts:  92
New Member

Basic python question here: do I need something like clutter or cgkit to make simple graphics? For example, I’d like to draw a circle wherever there is a touch. I’d like to keep it as simple as possible for now so I know why I’m doing what I’m doing.

How do I check what’s installed on my system? I found out today that there are at least 2 versions of python that mac users should be aware of, that from python.org and whatever comes with the developer tools. Which should I use, and how do I know what I’m using?

 Signature 

Nuigroup wiki

Profile
 
 
Posted: 03 September 2008 01:24 AM   [ Ignore ]   [ # 1 ]
Avatar
RankRank
Joined  2008-03-02
Total Posts:  107
Member

Well I think python.org is best bet, but it shouldn’t be any problem no matter which version you install.
And now about the graphics, there are a bunch of graphic library which you could use, clutter is just one of them
and it isn’t best choice for mac OS as I’m not sure if it works on it (It’s primary 4 linux platform), so if you wish to write
crossplatform apps then you need something like pyglet or pygame which are the 2 most popular media graphic-video-audio
develompment libs, and both works on all platforms. Cgkit is also a good lib but it has it’s own limitations as all of them do. smile
There are a bunch of examples that comes with them and you have also lots of tutorials on the net. (for the links checkout links page here on python thread)
Aside this two libs, there are also pure macos libs that enables you to write macos (Quartz 2d, objectiveC etc) apps.

Here are some links for macos:
http://developer.apple.com/graphicsimaging/pythonandquartz.html
http://www.packtpub.com/article/Setting-Up-Python-Development-Environment-on-Mac-OS-X
http://pyobjc.sourceforge.net/

Profile
 
 
Posted: 03 September 2008 03:17 PM   [ Ignore ]   [ # 2 ]
Rank
Joined  2008-05-17
Total Posts:  92
New Member

pyglet - perfect! Thanks, this is exactly what I’m looking for.

 Signature 

Nuigroup wiki

Profile
 
 
   
 
 
‹‹ Python books and links      pymt *update* ››