0

How to activate file typ filter in wxPython file browser
I am using wxFileDialog() call for file browsing,I want it to filter all unwanted files in display.

2
Contributors
1
Reply
4
Views
12 Years
Discussion Span
Last Post by vegaseat
0

Generally you tell the dialog which files you want to display ...

dlg = wx.FileDialog(self, "Open a file")
        dlg.SetStyle(wx.OPEN)
        wildcard = "Python files (.py)|*.py|"   \
                   "PythonW files (.pyw)|*.pyw|" \
                   "All files (*.*)|*.*"
        dlg.SetWildcard(wildcard)
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.