[OpenIndiana-discuss] python3

Apostolos Syropoulos asyropoulos at yahoo.com
Wed Jan 25 08:00:47 UTC 2017


Hello,

I am trying to use python3 for a little introductory course
and idle is not working. If I try the following program

from Tkinter import *
root = Tk()
w = Label(root, text="Hello, world!")
w.pack()
root.mainloop()


I get 


python3.4 hello.py 
Traceback (most recent call last):
File "hello.py", line 1, in <module>
from Tkinter import *
ImportError: No module named 'Tkinter'

 
Obviously Tk is not included in python3.
Suggestions/comments? 


A.S.
----------------------
Apostolos Syropoulos
Xanthi, Greece



More information about the openindiana-discuss mailing list