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