views:

531

answers:

1

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
@tom10, thanks, TE_READONLY is what I'm looking for. Do you know how to dynamically add text there?
Alex
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