質問編集履歴
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -13,3 +13,45 @@
|
|
13
13
|
|
14
14
|
|
15
15
|
$sudo port install py34-tkinter もしてあるのですがうまくいきません。
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
また、
|
20
|
+
|
21
|
+
>>> import turtle
|
22
|
+
|
23
|
+
>>> turtle.forward(100) としてみたところ
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
Traceback (most recent call last):
|
28
|
+
|
29
|
+
File "<stdin>", line 1, in <module>
|
30
|
+
|
31
|
+
File "<string>", line 6, in forward
|
32
|
+
|
33
|
+
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/turtle.py", line 3812, in __init__
|
34
|
+
|
35
|
+
Turtle._screen = Screen()
|
36
|
+
|
37
|
+
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/turtle.py", line 3662, in Screen
|
38
|
+
|
39
|
+
Turtle._screen = _Screen()
|
40
|
+
|
41
|
+
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/turtle.py", line 3678, in __init__
|
42
|
+
|
43
|
+
_Screen._root = self._root = _Root()
|
44
|
+
|
45
|
+
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/turtle.py", line 434, in __init__
|
46
|
+
|
47
|
+
TK.Tk.__init__(self)
|
48
|
+
|
49
|
+
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tkinter/__init__.py", line 1856, in __init__
|
50
|
+
|
51
|
+
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
|
52
|
+
|
53
|
+
_tkinter.TclError: no display name and no $DISPLAY environment variable
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
となってしまいます。
|