ich möchte fotos in canvas einfügen weiß aber leider nich wie das geht!!!!
kann mir da jemand helfen????
danke schon mal im voraus
fotos in canvas
Hallo matze4,
ich hoffe das hilft dir weiter:
mfg
Flano
ich hoffe das hilft dir weiter:
Code: Alles auswählen
canvas = Canvas(root, width = 400, height = 400, bg = 'white')
canvas.pack()
myPhoto = PhotoImage(file = 'myPicture.gif')
canvas.create_image(225, 210, anchor = CENTER, image = myPhoto)
Flano

-
- User
- Beiträge: 128
- Registriert: Freitag 22. Oktober 2004, 09:22
- Wohnort: Salzgitter
- Kontaktdaten:
Moinsen...
Quelle: http://effbot.org/tkinterbook/photoimage.htmEffbot.org / TkinterBook hat geschrieben:If you need to work with other file formats, the Python Imaging Library (PIL) contains classes that lets you load images in over 30 formats, and convert them to Tkinter-compatible image objects: