1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
<type 'exceptions.RuntimeError'> Traceback (most recent call last)
/home/j/<ipython console> in <module>()
/home/j/morphing.py in triangulation()
15 return win
16 def triangulation():
---> 17 image=PhotoImage(file="tux.gif")
18 fen=fenetre("tux.gif")
19 w1=image.width()
/usr/local/lib/python2.5/lib-tk/Tkinter.py in __init__(self, name, cnf, master, **kw)
3268 Valid resource names: data, format, file, gamma, height, palette,
3269 width."""
-> 3270 Image.__init__(self, 'photo', name, cnf, master, **kw)
3271 def blank(self):
3272 """Display a transparent image."""
/usr/local/lib/python2.5/lib-tk/Tkinter.py in __init__(self, imgtype, name, cnf, master, **kw)
3209 master = _default_root
3210 if not master:
-> 3211 raise RuntimeError, 'Too early to create image'
3212 self.tk = master.tk
3213 if not name:
<type 'exceptions.RuntimeError'>: Too early to create image |
Partager