frozenevil
Programmer
hi to all...
i'm working on an animation where i have to make the picture background.gif transparent.
l'm not able to do it.can you please help me or tell me what codes i should add to make the picture transparent.
thank in advance
import Tkinter
from Tkconstants import *
def window(tk):
global photo
frame=Tkinter.Frame(tk)
frame.pack()
canvas=Tkinter.Canvas(frame,bg ='white', width=500,height=500)
canvas.pack()
photo=Tkinter.PhotoImage(file="background.gif")
canvas.create_image(200, 250, image=photo)
root = Tkinter.Tk()
root.title("Simulation of infectious diseases")
window(root)
root.mainloop()
i'm working on an animation where i have to make the picture background.gif transparent.
l'm not able to do it.can you please help me or tell me what codes i should add to make the picture transparent.
thank in advance
import Tkinter
from Tkconstants import *
def window(tk):
global photo
frame=Tkinter.Frame(tk)
frame.pack()
canvas=Tkinter.Canvas(frame,bg ='white', width=500,height=500)
canvas.pack()
photo=Tkinter.PhotoImage(file="background.gif")
canvas.create_image(200, 250, image=photo)
root = Tkinter.Tk()
root.title("Simulation of infectious diseases")
window(root)
root.mainloop()