[Pythonmac-SIG] Problem with File dialog

Brett Duncan bduncan at jwcs.nsw.edu.au
Tue Apr 22 15:37:27 CEST 2008


Hello List!

I'm trying to add a file selector to a program I'm working on (I'm using 
wxPython on an Intel MacBook Pro, OS X 10.4.11), but I keep getting the 
following error whenever I run the program and try selecting a file:

Traceback (most recent call last):
   File "ConvertGUI.py", line 56, in SelectFile
     if dialog.ShowModal() == wx.ID_OK:
   File 
"//Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.8-mac-ansi/wx/_windows.py", 
line 707, in ShowModal
     return _windows_.Dialog_ShowModal(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "filterIndex == 0 || !isName" 
failed at /BUILD/wxPython-src-2.8.7.1/src/mac/carbon/filedlg.cpp(162) in 
MakeUserDataRec(): incorrect format of format string

Can anyone tell me what the problem is/where I've screwed up/how to fix 
this?

Thanks,

Brett


More information about the Pythonmac-SIG mailing list