Wxpython 停止wx richtext添加换行符

Wxpython 停止wx richtext添加换行符,wxpython,richtextbox,Wxpython,Richtextbox,为什么wx.richtext会从Newline()中添加'None'。我当然想去掉这个 输出: 在命名中检测到逗号 没有 垃圾邮件和烘焙豆,spam bake.txt self.bottomview.BeginTextColour((255, 0, 0)) gh = str(self.bottomview.WriteText("COMMAS DETECTED IN NAMING!")) + ('\n') + bf self.bottomview.En

为什么wx.richtext会从Newline()中添加'None'。我当然想去掉这个

输出:

在命名中检测到逗号

没有

垃圾邮件和烘焙豆,spam bake.txt

self.bottomview.BeginTextColour((255, 0, 0))                       
gh = str(self.bottomview.WriteText("COMMAS DETECTED IN NAMING!")) + ('\n') + bf
self.bottomview.EndTextColour()
self.bottomview.Newline()
self.bottomview.AppendText(gh) 

我正在添加两行新行:省略('\n')