Graphics?


#1

TO: experienced python programmers

So I have been wondering for a long time, and I don’t have any code to fix, but how do you import this turtle module I have heard so much about? I had tried writing “import turtle” and tried to make him draw a square, but nothing worked. If you have any knowledge as to how to make shapes in python, please help! Thanks!

  • A curious programer

#2

Our First Turtle Program


#3

So I tried doing exactly what you said, but I got this error code:

Traceback (most recent call last):
File “script.py”, line 1, in
import turtle
File “/usr/lib/python2.7/lib-tk/turtle.py”, line 107, in
import Tkinter as TK
File “/usr/lib/python2.7/lib-tk/Tkinter.py”, line 42, in
raise ImportError, str(msg) + ‘, please install the python-tk package’
ImportError: No module named _tkinter, please install the python-tk package

thanks anyways
PLEASE HELP

-dr.derp283


#4

seems you need to install tkinter, you can use pip (python package manager) to install this package