January 24th, 2004, 12:40 AM
Issue with file without extension with wxpython
I just ran into a weird issue
When I open a dialog box to open file, the files without an extension aren't listed.
So foo.bar would appear but not foo
Here's the line I used :
dlg = wxFileDialog(self, "Choose a file", ".", "", "*.*", wxOPEN)
January 24th, 2004, 05:16 AM
Not a big GUI user but.. could it have anything to do with the '.' option you have in there? after all the only difference between the two names is one has a period and the other doesn't
try changing the line to...
dlg = wxFileDialog(self, "Choose a file", "", "", "*.*", wxOPEN)
just a guess though
January 24th, 2004, 11:47 AM
January 24th, 2004, 04:03 PM
I found my problem. It was the *.* filter. The only file displayed where the one with anything, a dot, then anything.
I changed it for * and it worked ! :-)