[Tutor] filtering listed directories

Alan Gauld alan.gauld at btinternet.com
Sat Aug 22 15:32:56 CEST 2015

On 22/08/15 11:43, Laura Creighton wrote:

>> How can I filter out these hidden directories?
>> Help(tkFileDialog) doesn't help me as it just shows **options, but
>> doesn't show what these options might be.
> tix (tkinter extensions) https://wiki.python.org/moin/Tix
> have some more file dialogs, so maybe there is joy there.

There is a FileSelectDialog in Tix that has a dircmd option
according to the Tix documentation.

However, I've played about with it and can't figure out how
to make it work!

There is also allegedly a 'hidden' check-box subwidget
that controls whether hidden files are shown. Again I
couldn't find how to access this.

But maybe some questions on a Tix (or Tk) forum might
get more help? Once you know how to do it in native
Tcl/Tk/Tix you can usually figure out how to do it
in Python.

Alan G
Author of the Learn to Program web site
Follow my photo-blog on Flickr at:

More information about the Tutor mailing list