#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    4
    Rep Power
    0

    Unhappy 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)
  2. #2
  3. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    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

    Mark.
    programming language development: www.netytan.com Hula

  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    4
    Rep Power
    0
    Nope... Didn't worked...
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    4
    Rep Power
    0
    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 ! :-)

IMN logo majestic logo threadwatch logo seochat tools logo