I have a multi line, read only TextCtrl in wxpython
I know how to set values using
myTextCtrl.SetValue('hello')
But this will change whatever I previously had in my TextCtrl…
How do I add a new line and keep whatever I had before?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Either
widget.AppendTextorwidget.WriteTextwill write a new line each time if you send your string with a newline character (like ‘hello\n’)AppendText, would append the text at the end of the text in the control.WriteTextis the same except because the new text in placed at the current insertion point.