Es ist ein Problem aufgetaucht.
Ich habe als erstes Bild den Hintergrund eingefügt.
Darauf möchte ich sowohl das erste Bild (photo1) als auch das zweite Bild (photo2) einfügen.
Doch es erscheint immer nur das zweite Bild, bzw. das letzte Bild was ich auf dem Hintergrund einfügen will.
Wie kann ich alle Bilder anzeigen lassen?
Hier mein verwendetes Programm:
Code: Alles auswählen
from Tkinter import *
import ImageTk
canvas=Canvas(width=1000, height=2000, bg='white')
canvas.pack()
hintergrund= ImageTk.PhotoImage(file= "C:/hintergrund.jpg")
canvas.create_image(0,0, image=hintergrund, anchor=NW)
x=115
y=119
photo1= ImageTk.PhotoImage(file= "C:/bla.jpg")
canvas.create_image(115,119, image=photo1, anchor=NW)
x=200
y=300
photo2= ImageTk.PhotoImage(file= "C:/bla2.jpg")
canvas.create_image(x,y, image=photo2, anchor=NW)
Danke schonmal!,
Gruß
peak