views:

369

answers:

1

I have a wx.TextCtrl that I am using to represent a display with a fixed number of character rows and columns. I would like to hide the vertical scrollbar that is displayed to the right of the text pane since it is entirely unnecessary in my application. Is there a way to achieve this?

Also...I would like to hide the blinking cursor that is displayed in the pane. Unfortunately, wx.TextCtrl.GetCaret() is returning None so I cannot call wx.Caret.Hide().

Environment info:

  • Windows XP
  • Python 2.5
  • wxPython 2.8
+1  A: 

How about setting the style wx.TE_NO_VSCROLL for the wx.TxtCtrl?

Matthew Rankin
That worked beautifully. Thanks. For some reason, TE_NO_VSCROLL is not a documented style in the doc set I am using.
Brandon E Taylor
No effect at all here :-( (wxPython 2.8.10 on Ubuntu karmic)
Bluehorn