0
Hallo Ich möchte wissen, wie kann ich ein canvas.rectangle mit einem Bild, aber nicht eine Farbe füllen.Python Tkinter Leinwand Rechteck mit einem Bild
Dies ist mein Codes:
def P1():
def square():
x1,y1,x2,y2=0,675,75,750
for i in range(0,10):
for f in range(0,10):
can1.create_rectangle(x1,y1,x2,y2,fill="blue")
x1=x1+75
x2=x2+75
list.append((x1,x2,y1,y2))
x1,x2=0,75
y1=y1-75
y2=y2-75
can1.create_rectangle(x1,y1,x2,y2,fill="blue")
list.append((x1,x2,y1,y2))
Dank.
meinst du "create a new image" anstatt "create a new canvas"? –
Danke, es funktioniert, ich würde gerne wissen, ob es möglich ist, so etwas zu tun, aber mit create.image: http://www.noelshack.com/2016-20-1463922731-sans-titre.png. –