Re: tkinter file dialog pattern matching

Laura Creighton <[email protected]>
Newsgroups gmane.comp.python.tkinter
Message-ID <[email protected]>
In a message of Sat, 22 Aug 2015 21:04:24 +0100, Pawel Mosakowski writes:
>Hi,
>
>I've found this little gem in the Tk docs
>https://www.tcl.tk/man/tcl8.4/TkCmd/getOpenFile.htm#M13
>>From what I see "file patterns" in the file dialog are not "regex
>patterns" and do not support special characters. Only things that work
>are:
>1) * - any extension
>2) "" - files without extension
>3) literal extension without wildcard chars
>Unfortunately it looks like there is no simple way to filter out hidden
>files.
>Check out this answer
>https://mail.python.org/pipermail//tutor/2011-November/086483.html
>
>Regards,
>Pawel Mosakowski

Thank you.  Looks like it will be necessary to construct a new
widget.  I'm surprised ...

Laura
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.