[wxpython] exclude files in a wx.FileDialog?

Franz Steinhaeusler franz.steinhaeusler at utanet.at
Tue Jan 18 08:40:06 EST 2005

On 18 Jan 2005 13:23:24 GMT, John Field <this at is.invalid> wrote:

>Is it possible to exclude certain files in a wx.FileDialog, so that the user 
>won't see them and can't select them with the mouse in de File open window?
>I was thinking of somehow extending the class FileDialog(Dialog) 
>in the wx module _windows.py to a subclass, but I'm not sure how to do that 
>(if feasible). 

wx.FileDialog is only a wrapper for the api FileDialog (at least this 
applies for windows) and therefore it is not possible to derive from it.

Really exclude, I think, is not possible.

You can put a mask 
wx.FileDialog(...wildcard = "BMP files (*.bmp)|*.bmp|GIF files

Otherwise you have to create your own FileDialog.
Franz Steinhaeusler

More information about the Python-list mailing list