]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/RichTextCtrl.py
extracted common code of ToLong and ToULong in a separate template helper
[wxWidgets.git] / wxPython / demo / RichTextCtrl.py
index f9ceffd44771dcd09f455a692aa58a58648a6ff7..b4824e7073382e9e78b4081e00685dc74a9c25e1 100644 (file)
@@ -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