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
This commit is contained in:
Robin Dunn
2006-11-16 23:43:40 +00:00
parent 80a774ed35
commit 08893e7eae

View File

@@ -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,6 +172,7 @@ class RichTextFrame(wx.Frame):
self.rtc.EndParagraphSpacing()
self.rtc.EndSuppressUndo()
self.rtc.Thaw()
def OnFileOpen(self, evt):