use wx.SAVE style for the save dialog

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-10-11 03:53:11 +00:00
parent e19b9131cb
commit 88535d8ed5

View File

@@ -197,7 +197,7 @@ class RichTextFrame(wx.Frame):
# TODO: Use RichTextBuffer.GetExtWildcard to get the wildcard string
dlg = wx.FileDialog(self, "Choose a filename",
wildcard="All files (*.*)|*.*",
style=wx.OPEN)
style=wx.SAVE)
if dlg.ShowModal() == wx.ID_OK:
path = dlg.GetPath()
if path: