[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Re: Extending Surface Class



By wrapper, he means writing a python class that has an internal member, _sruf, which is the surface in question. Then you can override the __str__ function with your own. Otherwise, you just call _sruf's own methods and attrs

-Tyler

On Sat, Jul 25, 2009 at 2:48 PM, ERName <easily.remembered.name@gmail.com> wrote:
Well, I appreciate your reply, but I don't really understand what you
mean by "wrapper"... and this mysterious _sruf attribute?

The part about being a C object I understand, though, and I was afraid
of that. If there's not any easy way of doing this, I can just live
with the default __str__(), I guess.



--
Visit my blog at http://oddco.ca/zeroth/zblog