>> 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

_______________________________________________
openindiana-discuss mailing list
[email protected]
https://openindiana.org/mailman/listinfo/openindiana-discuss

Reply via email to