Code: Alles auswählen
import Tkinter as tk
Code: Alles auswählen
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python25\lib\lib-tk\Tkinter.py", line 1403, in __call__
return self.func(*args)
File "C:\Python25\lib\idlelib\MultiCall.py", line 151, in handler
r = l[i](event)
File "C:\Python25\lib\idlelib\ScriptBinding.py", line 168, in run_module_event
interp.runcode(code)
File "C:\Python25\lib\idlelib\PyShell.py", line 699, in runcode
self.interp.restart_subprocess()
AttributeError: ModifiedInterpreter instance has no attribute 'interp'
Code: Alles auswählen
import Tkinter as tk
import os
fenster_1 = tk.Tk()
fenster_1.title('Foto')
#canvas in neuem Fenster
f1 = tk.Canvas(fenster_1,bg='white',bd=2,width=500,height=500)
photo = PhotoImage(file='C:\Dokumente und Einstellungen\kleine-Nudel\Eigene Dateien\Eigene Bilder\Liebe\Strandkinder.gif')
f1.create_image(300,280, image=img, anchor=CENTER)
f1.pack()
fenster_1.mainloop()