X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b97ff8ed661f63c481fefb79b9708ad5d0749342..ccddcbac5eb708e0812784f53d2c42db1738c50b:/wxPython/demo/RichTextCtrl.py?ds=sidebyside 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