[Tutor] how to search a directory from a Tkinter program
alan.gauld at btinternet.com
Wed Mar 19 09:55:47 CET 2008
"brindly sujith" <brindly at gmail.com> wrote
> i am developing an application in tkinter
> i want to know whether we have any option to search a directory from
I'm not sure what you mean.
You can use the standard Python modules to search a directory,
or indeed an entire directory tree using walk(). I demonstrate this
in the OS topic of my tutor.
OTOH if you mean is there a standard directory dialog so that
the user can browse a directory then yes, look in the standard
dialogs package as described in the documentation and tutorials.
More on those here:
And exploring the module with dir() etc will throw up more info.
So either way it is pretty straightforward.
Author of the Learn to Program web site
More information about the Tutor