*sorry about the links to pictures, I don't have 10 reputation
I am making a tkinter script in Python 3 that displays a GIF image. Everything is working but the image is too zoomed in. How do I zoom out? Here is the code so far:
import time
from tkinter import *
global tk
tk = Tk()
tk.title("No Drugs PSA Smoking Picture")
global canvas
canvas = Canvas(tk, width=9000, height=9000)
canvas.pack()
slideone = PhotoImage(file='c:\\slide1nspsa.gif')
canvas.create_image(0, 0, anchor=NW, image=slideone)
Here is a picture of what I want it to look like: http://ift.tt/1LmZxyt And here is what it looks like right now: http://ift.tt/1FE4AKL
Aucun commentaire:
Enregistrer un commentaire