Re: Insert image to a List box

2007-11-16 Thread Matt McCredie
> Thanks a lot for your patience. > I put the gif file to a folder called fig in my desktop. > dirpath = './fig' > still got error: > > Traceback (most recent call last): > File "11.py", line 238, in > img.config(image=gifsdict[imgname]) > NameError: name 'imgname' is not defined > You shou

Re: Insert image to a List box

2007-11-16 Thread Matt McCredie
On Nov 15, 2007 2:15 PM, linda. s <[EMAIL PROTECTED]> wrote: > > On 11/15/07, Matimus <[EMAIL PROTECTED]> wrote: > > On Nov 15, 12:45 pm, linda.s <[EMAIL PROTECTED]> wrote: > > > I run the following code and got the error (I put a .gif file on the > > > desktop) > > > Traceback (most recent call l

Re: Insert image to a List box

2007-11-15 Thread Matimus
On Nov 15, 12:45 pm, linda.s <[EMAIL PROTECTED]> wrote: > I run the following code and got the error (I put a .gif file on the desktop) > Traceback (most recent call last): > File "11.py", line 25, in > for gifname in os.listdir(dirpath): > OSError: [Errno 2] No such file or directory: '.\\D

Insert image to a List box

2007-11-15 Thread linda.s
I run the following code and got the error (I put a .gif file on the desktop) Traceback (most recent call last): File "11.py", line 25, in for gifname in os.listdir(dirpath): OSError: [Errno 2] No such file or directory: '.\\Desktop\\' import os import Tkinter root = Tkinter.Tk() L = Tkint