X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b97ff8ed661f63c481fefb79b9708ad5d0749342..619dcb095efac5a79b6bd1e7c65d62d651ef48fc:/wxPython/demo/RichTextCtrl.py diff --git a/wxPython/demo/RichTextCtrl.py b/wxPython/demo/RichTextCtrl.py index f9ceffd447..b4824e7073 100644 --- a/wxPython/demo/RichTextCtrl.py +++ b/wxPython/demo/RichTextCtrl.py @@ -197,12 +197,13 @@ 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: self.rtc.SaveFile(path) - + dlg.Destroy() + def OnFileViewHTML(self, evt): pass