[ wxwindows-Bugs-1532580 ] SaveFileDialog changes default extension
SourceForge.net
noreply at sourceforge.net
Mon May 21 11:55:44 PDT 2007
Bugs item #1532580, was opened at 2006-08-01 19:01
Message generated for change (Settings changed) made by csomor
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1532580&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wxMac specific
Group: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Kevin Altis (kasplat)
Assigned to: Stefan Csomor (csomor)
Summary: SaveFileDialog changes default extension
Initial Comment:
This has been a bug/feature in the Mac version of wxWidgets for a long
time but I would like to see the behavior changed to match Windows if
possible; I haven't double-checked GTK but I believe it works the same as
Windows.
The problem is that the first extension in the wildcard string passed to
SaveFileDialog replaces the extension of the filename passed to the dialog
or removes the extension completely. The quickest way to test this is to
use the function wrapper provided by wxPython as you can test all the
cases quickly in the shell using PyShell.
>>> from wx.lib.dialogs import saveFileDialog as sf
>>> sf(filename='test.txt')
In this case the default wildcard='All Files (*.*)|*.*' results in the extension
being removed so the Save As field in the dialog only shows 'test'
>>> sf(filename='test.txt', wildcard='All files (*.*)|*.*|Python scripts
(*.py;*.pyw)|*.pyw;*.PY;*.PYW;*.py'
----------------------------------------------------------------------
Comment By: Stefan Csomor (csomor)
Date: 2007-05-21 20:55
Message:
Logged In: YES
user_id=81467
Originator: NO
fixed in WX_2_8_BRANCH
Thanks,
Stefan
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1532580&group_id=9863
More information about the wx-dev
mailing list