[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pygsear] Re: getting a handle on Drawable

From: Lee Harr
Subject: [pygsear] Re: getting a handle on Drawable
Date: Sun, 09 Mar 2003 16:40:58 +0000

With my spotty undrstanding of this stuff I thought this code
might draw a rectangle,any hints?


Sorry for the very late response...

I think part of your message may have been cut off?
Was there an attachment maybe?

The simplest way to draw a rectangle would be this:

from pygsear.Drawable import Rectangle
r = Rectangle()

From there you might want to move the rectangle or change
its color:

from pygsear.locals import *
r.nudge(100, 200)

udraw is only useful in the interactive interpreter. It is
draw + update and so it would slow things down too much in
an actual game.

Does this help at all?

Add photos to your e-mail with MSN 8. Get 2 months FREE*.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]