[OpenIndiana-discuss] python3
Apostolos Syropoulos
asyropoulos at yahoo.com
Thu Jan 26 13:41:15 UTC 2017
>> from Tkinter import *
>> root = Tk()
>> w = Label(root, text="Hello, world!")
>> w.pack()
>> root.mainloop()
>
>
> Hello.
> For python 3 it seems it should be
> from tkinter import *
Indeed this is correct. However, after changing Tkinter to tkinter I get
$ python3.4 hello.py
Traceback (most recent call last):
File "hello.py", line 1, in <module>
from tkinter import *
I compiled myself Python 3.6 the modified snippet works just fine.
$ /opt/gnu/python3/bin/python3.6 --version
Python 3.6.0
A.S.
----------------------
Apostolos Syropoulos
Xanthi, Greece
More information about the openindiana-discuss
mailing list