How to create a non-editable text box with no cursor in wxPython to dump text in?
+3
A:
wx.StaticText
You could also use a regular TextCtrl with the style TE_READONLY
but that shows a cursor and the text looks editable, but it isn't.
tom10
2009-08-10 13:29:01
@tom10, thanks, TE_READONLY is what I'm looking for. Do you know how to dynamically add text there?
Alex
2009-08-10 13:42:41
Glad to help. `myctrl.AppendText("new text")` will append text. (Making it non-editable will still allow changes to the text by the program, btw.)
tom10
2009-08-10 13:53:50