My wxFileDialog for opening a file used to work. While debugging (in
Wing), I find that the filenames are all grayed out (except
directories). My wildcard is "*.*". What am I forgetting, or what
did I miss?
My wxFileDialog for opening a file used to work. While debugging (in
Wing), I find that the filenames are all grayed out (except
directories). My wildcard is "*.*". What am I forgetting, or what
did I miss?
On Feb 29, 2:00 pm, Robin Dunn <ro...@alldunn.com> wrote:
On 2/29/12 9:36 AM, Charles Hartman wrote:
> (Coming back to wx and Python after years away!)
> My wxFileDialog for opening a file used to work. While debugging (in
> Wing), I find that the filenames are all grayed out (except
> directories). My wildcard is "*.*". What am I forgetting, or what
> did I miss?
Sorry, yes: Mac OS 10.7.8. Python 2.7.2 (64/32-bit). wxPython 2.9.3.1
cocoa (why are they calling it "classic"?)
If I hardwire wildcard="*.*" into the constructor call, it works. But
this standard code
wildcard = 'All files (*.*) | *.*'
You have extra spaces in there. It may be looking literally for a
filename that begins with a blank. Try:
wildcard = 'All files (*.*)|*.*'
You might also try skipping the dot:
wildcard = 'All files (*.*)|*'
···
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Many thanks. (What's odd is that a while back that line *did* work.
But I'm hardly surprised that updating old code should turn up
quirks.
Charles Hartman
···
On Feb 29, 5:32 pm, Tim Roberts <t...@probo.com> wrote:
Charles Hartman wrote:
> Sorry, yes: Mac OS 10.7.8. Python 2.7.2 (64/32-bit). wxPython 2.9.3.1
> cocoa (why are they calling it "classic"?)
> If I hardwire wildcard="*.*" into the constructor call, it works. But
> this standard code
> wildcard = 'All files (*.*) | *.*'
You have extra spaces in there. It may be looking literally for a
filename that begins with a blank. Try:
wildcard = 'All files (*.*)|*.*'
You might also try skipping the dot:
wildcard = 'All files (*.*)|*'
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.