Gib doch als letzte(!) Anweisung mal ein:
Code: Alles auswählen
mainloop()
Code: Alles auswählen
mainloop()
Code: Alles auswählen
import from xturtle *
Code: Alles auswählen
forward(100)
Code: Alles auswählen
>>> mainloop()
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
mainloop()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tkinter.py", line 328, in mainloop
_default_root.tk.mainloop(n)
AttributeError: 'NoneType' object has no attribute 'tk'
>>>
Code: Alles auswählen
from xturtle import *
mainloop()
forward(100)
Code: Alles auswählen
from xturtle import *
forward(100)
mainloop()
Also mainloop() ganz am Ende hat es gebracht.Gib doch als letzte(!) Anweisung mal ein: