wxpython add line to TextCtrl

前端 未结 3 1591
没有蜡笔的小新
没有蜡笔的小新 2021-01-19 05:46

I have a multi line, read only TextCtrl in wxpython I know how to set values using

myTextCtrl.SetValue(\'hello\')

But this will change wha

3条回答
  •  无人共我
    2021-01-19 06:30

    myTextCtrl.AppendText('hello')
    

    This does not add a newline character on its own, so you will have to include that in the string if needed.

提交回复
热议问题