Verfasst: Mittwoch 25. Juni 2008, 15:24
gibt es eigentlich eine Seite für Python auf dem MAc wo solche Probleme zusammengefasst sind, leider stehen in meinem Python diesbezüglich keine hinweise
Seit 2002 Diskussionen rund um die Programmiersprache Python
https://www.python-forum.de/
Code: Alles auswählen
IDLE 1.2.2
>>> from xturtle import *
xturtle0.95a0 - bugfixes: 1
Loading config-file from: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/xturtle
>>>
Code: Alles auswählen
forward(100)
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: