]> git.saurik.com Git - wxWidgets.git/commitdiff
use wx.SAVE style for the save dialog
authorRobin Dunn <robin@alldunn.com>
Wed, 11 Oct 2006 03:53:11 +0000 (03:53 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 11 Oct 2006 03:53:11 +0000 (03:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/RichTextCtrl.py

index f9ceffd44771dcd09f455a692aa58a58648a6ff7..c31b5aa48ddc4b781f2380902233b4e6057e8b89 100644 (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: