why would this work:
...
from PIL import Image, ImageTk
....
img = ImageTk.PhotoImage(Image.open("One.jpg"))
...
but this
...
import PIL as p
....
img = p.ImageTk.PhotoImage(p.Image.open("One.jpg"))
...
tells me module 'PIL' has no attribute 'ImageTk'?
I thought that I could import PIL as p then use anything in PIL in my code as long as it's preceded by p.
I'd like to avoid using from PIL import Image, ImageTk because I like to have the context of which modules bits of code come from.