def printcolor():
print self.color
Should be
def printcolor(self):
print self.color
Class methods should accept at least one argument, self.
--
Andrew Ulysses Baker
"failrate"
- Re: [pygame] Re: [Tutor] An Introduction and a question andrew baker
- Re: [pygame] Re: [Tutor] An Introduction and a questi... Justin Shaw
- Re: [pygame] Re: [Tutor] An Introduction and a qu... andrew baker
- Re: [pygame] Re: [Tutor] An Introduction and a questi... Marius Gedminas