[Tkinter-discuss] tkinter file dialog pattern matching

Laura Creighton lac at openend.se
Sat Aug 22 22:17:11 CEST 2015


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



More information about the Tkinter-discuss mailing list