Under python 2.5, using "import ImageTk" can not find the ImageTk, try "from PIL import ImageTk" instead.
A previous post has mentioned similar problem, it seems a new image.py file in the cvs res can solve the problem of module importing. But to load the png file still be a problem on my machine. On 4月13日, 下午6时21分, marko <[EMAIL PROTECTED]> wrote: > Running leo under python 2.4 solves the problem. > > On Apr 13, 7:16 pm, marko <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I've got Leo running on debian linux, but the cleo icons won't load. > > > Leo Log Window... > > Leo 4.4.8 final, build 1.244 , April 6, 2008 > > python 2.5.0, Tk 8.4.12, Pmw 1.3 > > linux2 > > > reading: /home/marko/marko.leo > > can not import Image module from PIL > > can not import ImageTk module > > can not load image: /usr/local/lib/leo/leo/Icons/cleo/pri5.png > > > PIL and ImageTk have been installed and the icon files are in the > > correct location. > > > Any ideas how to make it work? > > > TIA, > > > Marko --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~----------~----~----~----~------~----~------~--~---
