I'm seeing some odd behavior in wxPython's FileDialog using the Save  
style. Here's the code:

d = wx.FileDialog(None, message="Save As", style=wx.FD_SAVE)
d.ShowModal()
print d.GetPath()

        If I try to type in a full filename such as 'test.txt', I get a  
dialog that states: "You cannot save this document with extension  
“.txt” at the end of the name. The required extension is “.”. It then  
gives me the option of canceling, using '.' as the extension, or using  
both. If I choose 'Use both', I get the following output from the  
print statement:

u'/Users/ed/test.txt.'

        Note the trailing period. This is using the following:

Platform: Mac
Python Version: 2.5.1 on darwin
Dabo Version: Version 0.8.3; Revision 4030:4032M
UI Version: 2.8.4.0 on wxMac

        Can anyone else confirm this behavior?

-- Ed Leafe





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to