Hiding Vertical Scrollbar in wx.TextCtrl
-
10-07-2019 - |
Question
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
Solution
How about setting the style wx.TE_NO_VSCROLL
for the wx.TxtCtrl?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow