fsleyes_widgets.textpanel
This module provides the TextPanel
class, for displaying
some text, oriented either horizontally or vertically.
- class fsleyes_widgets.textpanel.TextPanel(parent, text=None, orient=4, **kwargs)[source]
Bases:
Panel
A
wx.PyPanel
which may be used to display a string of text, oriented either horizontally or vertically.Create a
TextPanel
.- Parameters:
parent – The
wx
parent object.text – The text to display. This can be changed via
SetText()
.orient – Text orientation - either
wx.HORIZONTAL
(the default) orwx.VERTICAL
. This can be changed later viaSetOrient()
.
All other arguments are passed through to
wx.Panel.__init__
.