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:
parent
80a774ed35
commit
08893e7eae
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user