Re: [Tutor] Resending question with smaller file

2017-02-13 Thread Alan Gauld via Tutor
On 13/02/17 16:06, Lisa Hasler Waters wrote: > We are trying to use the random function in the Tkinter module > from tkinter import * > import random This looks for the random module and tries your local folder first. If you have a file called random.py it tries to import that. Based on your e

Re: [Tutor] Resending question with smaller file

2017-02-13 Thread Tim Golden
On 13/02/2017 16:06, Lisa Hasler Waters wrote: Hello Python Tutor, We are trying to use the random function in the Tkinter module in PyCharmEDU 3.5. (on Macs running 10.11.6). However, we get a number of error messages: Here's the code: from tkinter import * import random tk = Tk() canvas = C

[Tutor] Resending question with smaller file

2017-02-13 Thread Lisa Hasler Waters
Hello Python Tutor, We are trying to use the random function in the Tkinter module in PyCharmEDU 3.5. (on Macs running 10.11.6). However, we get a number of error messages: Here's the code: from tkinter import * import random tk = Tk() canvas = Canvas(tk, width=400, height=400) canvas.pack()