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