X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e2e0b76a952ec359e770f5b37f87bc25581bd339..3b7ab6bda8b2dfdfe5f71658dfdddd57bab357b8:/wxPython/demo/RichTextCtrl.py?ds=sidebyside diff --git a/wxPython/demo/RichTextCtrl.py b/wxPython/demo/RichTextCtrl.py index b4824e7073..5cf36b7f4d 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) @@ -86,12 +86,12 @@ class RichTextFrame(wx.Frame): self.rtc.BeginLeftIndent(100, -40) self.rtc.Newline() - self.rtc.WriteText("It was in January, the most down-trodden month of an Edinburgh winteself.rtc. An attractive woman came into the cafe, which is nothing remarkable.") + self.rtc.WriteText("It was in January, the most down-trodden month of an Edinburgh winter. An attractive woman came into the cafe, which is nothing remarkable.") self.rtc.EndLeftIndent() self.rtc.Newline() - self.rtc.WriteText("Numbered bullets are possible, again using subindents:") + self.rtc.WriteText("Numbered bullets are possible, again using sub-indents:") self.rtc.BeginNumberedBullet(1, 100, 60) self.rtc.Newline() @@ -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