0

I'm using TextCtrl in wxPython to display text read-only:

control = wx.TextCtrl(self, style=wx.TE_MULTILINE | wx.TE_READONLY)

However, the text cursor is still there, blinking.

Can I somehow hide that cursor (not the mouse pointer)?

florisla
  • 12,668
  • 6
  • 40
  • 47

1 Answers1

0

The caret is always shown in the text controls because it's useful even when they're read-only because it allows selecting and copying text from them. If you don't need this functionality, simply use wxStaticText instead.

VZ.
  • 21,740
  • 3
  • 39
  • 42