[ wxwindows-Bugs-1404132 ] Different Save FileDialog result on Mac
SourceForge.net
noreply at sourceforge.net
Tue Jun 5 19:20:05 PDT 2007
Bugs item #1404132, was opened at 2006-01-12 11:21
Message generated for change (Comment added) made by sf-robot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1404132&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: Platform specific
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Alex Greif (greifa)
Assigned to: Stefan Csomor (csomor)
Summary: Different Save FileDialog result on Mac
Initial Comment:
I just found a case where the Mac wxWidgets
implementation differs from
the windows version.
--- wxPython snippet ---
FOTOBUCH_FILE_WILDCARDS = 'Fotobuch-XXL (*.fbxxl)|*.fbxxl'
dlg = wx.FileDialog(
self, message=res.TEXT_SAVE_FOTOBUCH_AS,
defaultDir=defaultDir,
defaultFile='',
wildcard=FOTOBUCH_FILE_WILDCARDS,
style=wx.SAVE | wx.CHANGE_DIR)
If I enter the filename eg.
testFile
then dlg.GetPath()
returns on the Mac <path>/testFile
but
returns on windows <path>/testFile.fbxxl
So on the Mac no suffix is added automatically, but is
done on windows.
The same behaviour can can be seen in the wxPython Demo
> Common
Dialogs > FileDialog > SAVE Button
----------------------------------------------------------------------
>Comment By: SourceForge Robot (sf-robot)
Date: 2007-06-05 19:20
Message:
Logged In: YES
user_id=1312539
Originator: NO
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: Stefan Csomor (csomor)
Date: 2007-05-21 21:24
Message:
Logged In: YES
user_id=81467
Originator: NO
yes, that's the default behaviour of the save box on mac, actually on mac
you should pass in a default filename, like eg "Untitled.fbxxl" and this
will give you the usual platform behaviour of having the name of the file
selected and the extension unselected. This will also give you a decent
behaviour on the other platforms.
Best,
Stefan
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1404132&group_id=9863
More information about the wx-dev
mailing list