Code: Alles auswählen
from xturtle import*
class Spieler(Turtle):
def __init__(self):
Turtle.__init__(self)
alex = Spieler
bert = Spieler
alex.color('red')
alex.forward(40)
Traceback (most recent call last):
File "C:\Python25\Porjekte\Turtlebowl.py", line 8, in <module>
alex.color('red')
TypeError: unbound method color() must be called with Spieler instance as first argument (got str instance instead)
Wäre schön wenn mir jemand helfen könnte. Vielleicht komm ich dann auch endlich bei pygame weiter (http://www.python-forum.de/topic-11832.html)