[Tutor] Please review my code

R. Alan Monroe amonroe at columbus.rr.com
Fri Sep 16 13:20:33 CEST 2011


> It was only tested on a Windows Box, but I see no reason why it would not
> work on Unix family. https://github.com/janus/Text-Twist
> I need you comments.

I think you forgot to upload some needed images along with the python
code:

['abase', 'abased', 'abed', 'ads', 'baa', 'baas', 'bad', 'bade', 'bas', 'base', 'based', 'bead', 'beads', 'bed', 'beds', 'dab', 'dab
s', 'debs', 'sad', 'sea']
Traceback (most recent call last):
  File "haPu3.py", line 36, in <module>
    IMAGE = PhotoImage(file=doom_image)  #'C:\Python_way\doom2.gif')
  File "c:\python25\lib\lib-tk\Tkinter.py", line 3294, in __init__
    Image.__init__(self, 'photo', name, cnf, master, **kw)
  File "c:\python25\lib\lib-tk\Tkinter.py", line 3250, in __init__
    self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: couldn't open ".\doom2.gif": no such file or directory

Alan



More information about the Tutor mailing list