Searching

Scott David Daniels Scott.Daniels at Acm.Org
Mon Feb 9 16:43:18 EST 2004


ADE wrote:

> Hi I was wondering if one of you could help me out
You are missing info on your system and python version.
If you are running 2.3 or later:
>...
>             for name in files:
 >                 name = name.lower()    # if on windows
>                 if name.endswith('.jpg') and 'ocean' in name:
>                     filenames['jpg'].append(os.path.join(root, name))
>                     self.listbox1.insert(END, name)
>                 elif name.endswith('.gif') and 'ocean' in name:
>                     filenames['gif'].append(os.path.join(root, name))
>                     self.listbox1.insert(END, name)

-- 
-Scott David Daniels
Scott.Daniels at Acm.Org



More information about the Python-list mailing list