# -*- coding: utf-8 -*- import tkinter as tk #import tkinter.ttk as ttk root = tk.Tk() root.title("tk42.py") ##################################### ca = tk.Canvas(root, bg = 'lightgreen', relief = 'raised', bd = 5, width = 500, height = 500) ca.pack() horse = tk.PhotoImage(file = 'horse.gif') img = ca.create_image(30,30,image = horse, anchor = tk.NW) ##################################### root.mainloop()