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
On 01/25/17 11:00 AM, Apostolos Syropoulos via openindiana-discuss wrote:
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()
>> 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 (m