Introduction/box

Lee Harr missive at frontiernet.net
Sat Nov 27 11:07:41 EST 2004


On 2004-11-26, Christos TZOTZIOY Georgiou <tzot at sil-tec.gr> wrote:
> On Fri, 26 Nov 2004 22:21:45 +0000, rumours say that cm012b5105
><cm012b5105 at blueyonder.co.uk> might have written:
>
>>Hello every body this is my first post i would just like to say im new to to 
>>python iv tried out several different tutorials.And i think its great anyway 
>>i would like to ask a question if i may i want to know how to make a 
>>box /square i was hoping some one would tell me. That way i would have 
>>something to work off,iv just downloaded pygame and i haqve done all my 
>>practice using "idle" thanks 
>
> I know almost nothing about PyGame, but a quick search using Google
> brought this up:
>
> http://aspn.activestate.com/ASPN/Mail/Message/pygame-users/2031142
>
> It could help.


Hmm... That's me wrote that, and I can't make heads or tails of it  ;o)

You might want to try pygsear (an extension package that uses pygame):
http://www.nongnu.org/pygsear/

To make a box you could then do:

>>> from pygsear.Drawable import Square
>>> s = Square(side=100)
>>> s.center()
>>> s.udraw()
>>>




More information about the Python-list mailing list