Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from Tkinter import *
- root = Tk()
- root.geometry("500x500")
- class Application(Frame):
- def __init__(self, master):
- #initialize the frame
- Frame.__init__(self, master)
- self.grid()
- self.createWidgets()
- def createWidgets(self):
- self.can = Canvas(root, width=160, height=160, bg='white')
- self.pic = PhotoImage(file='speaker.gif')
- self.item = can.create_image(80, 80, image=pic)
- app = Application(root)
- #kick off event loop
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement