From: Robin Dunn Date: Thu, 16 Nov 2006 23:43:40 +0000 (+0000) Subject: Wrap the setting of the initial content and formatting in Freeze/Thaw X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/08893e7eae3ed9fdfe6c21c4aa557da495c345c5 Wrap the setting of the initial content and formatting in Freeze/Thaw git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/demo/RichTextCtrl.py b/wxPython/demo/RichTextCtrl.py index b4824e7073..a31dfb4184 100644 --- a/wxPython/demo/RichTextCtrl.py +++ b/wxPython/demo/RichTextCtrl.py @@ -17,7 +17,7 @@ class RichTextFrame(wx.Frame): self.rtc = rt.RichTextCtrl(self, style=wx.VSCROLL|wx.HSCROLL|wx.NO_BORDER); wx.CallAfter(self.rtc.SetFocus) - + self.rtc.Freeze() self.rtc.BeginSuppressUndo() self.rtc.BeginParagraphSpacing(0, 20) @@ -172,7 +172,8 @@ class RichTextFrame(wx.Frame): self.rtc.EndParagraphSpacing() self.rtc.EndSuppressUndo() - + self.rtc.Thaw() + def OnFileOpen(self, evt): # TODO: Use RichTextBuffer.GetExtWildcard to get the wildcard string