停止wx richtext添加Newline

时间:2013-08-23 01:27:25

标签: wxpython richtextbox

为什么wx.richtext从Newline()添加'None'我肯定想摆脱它。

输出:

在命名中检测到的公告!

垃圾邮件和烤豆,垃圾邮件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) 

1 个答案:

答案 0 :(得分:0)

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