[wxPython] newbie, filefind

Hi,
as you might guess I am a newbie. could anyone
please give me a short listing that explains the
use of FindFirst (or FindFirstFile) in wxPython?

···

------------------------------------------------
from wxPython.wx import *

f = FindFirst("e:/test/*.txt",0)
    while ( !f.IsEmpty() ):
        print f
        f = wxFindNext()
--------------------------------------------
something seems to be missing here ;-(

What do I have to do to include all subdirs in
the search?

Thanks a lot

Marcus
--------------------------
mailto:stojek@part-gmbh.de

as you might guess I am a newbie. could anyone
please give me a short listing that explains the
use of FindFirst (or FindFirstFile) in wxPython?

Look at os.listdir and os.walk in the Python docs.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

Hi,
as you might guess I am a newbie. could anyone
please give me a short listing that explains the
use of FindFirst (or FindFirstFile) in wxPython?

------------------------------------------------
from wxPython.wx import *

f = FindFirst("e:/test/*.txt",0)
    while ( !f.IsEmpty() ):
        print f
        f = wxFindNext()
--------------------------------------------
something seems to be missing here ;-(

What do I have to do to include all subdirs in
the search?

It will, as long as your path matches *.txt, does it?

Thanks a lot

Marcus
--------------------------
mailto:stojek@part-gmbh.de

Cheers,
FrisPete

···

On Friday, 26. October 2001 17:06, Marcus Stojek wrote: