Thanks for your reply.

I have find out the reason. I installed the PIL module before
installing Tk, so
the PIL's installer did not install the ImageTk module for me. So
smart a installer,
but puzzled me for a few days.

After re-installing PIL, I can "from PIl import ImageTk" now.

But there is still something wrong with loading the pre1.png like
files.



On 5月21日, 下午10时13分, Terry Brown <[EMAIL PROTECTED]> wrote:
> On Wed, 21 May 2008 05:54:22 -0700 (PDT)
>
> hairui <[EMAIL PROTECTED]> wrote:
> > One important reason is that I doubt the problem just occurs on Ubuntu
> > 8.04 or some other similar platform.
>
> ImageTk is a separate package in Ubuntu, I think Leo requires both PIL
> (package "python-imaging") and the package "python-imaging-tk".
>
> The problem hasn't been reported for other OSs that I'm aware of, other
> than people have run in to the PIL not installed problem before.  I'd
> guess the Windows PIL installer puts ImageTk in the same place the
> package "python-imaging-tk" puts it.
>
> Cheers -Terry
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to