[Tutor] filtering listed directories

Chris Roy-Smith chris_roysmith at internode.on.net
Sun Aug 23 05:09:41 CEST 2015


On 22/08/15 23:32, Alan Gauld wrote:
> 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.
>
Thanks for the Tcl tk hint, so I searched for info for tcl tk. 
Unfortunately the options appear to be the same as offered by tkinter. I 
had hoped that the cause of my problem would be that I'm still to learn 
that bit ;)



More information about the Tutor mailing list