i wanted to use a .jpeg image file on a label in a small program that am
building in Python, i use Window 7 professional OS, and Python 3.4....here
are my codes:-
import sys
from tkinter import *

#Window
mGui=Tk()

mGui.geometry("1000x500")
mGui.title("Kamusi")

#Functions

#Variables
ment=StringVar()
#Images
image = Image.open("logo.jpg")
photo = ImageTk.PhotoImage(image)
#Widgets
Logo=Label(mGui,image=photo,width=510,height=150)
Logo.grid(row=0,column=3)

when i run those codes i get this error message:-
AttributeError: type object 'Image' has no attribute 'open'
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to