fsleyes.views.shellpanel
¶
This module provides the ShellPanel
class, a FSLeyes view
which contains an interactive Python shell.
- class fsleyes.views.shellpanel.ShellPanel(parent, overlayList, displayCtx, frame)[source]¶
Bases:
fsleyes.views.viewpanel.ViewPanel
A
ShellPanel
is aViewPanel
which contains an interactive Python shell.A
ShellPanel
allows the user to programmatically interact with theOverlayList
, and with theDisplayContext
andSceneOpts
instances associated with theCanvasPanel
that owns thisShellPanel
.- __init__(parent, overlayList, displayCtx, frame)[source]¶
Create a
ShellPanel
.- Parameters
parent – The
wx
parent object, assumed to be theCanvasPanel
that owns thisShellPanel
.overlayList – The
OverlayList
.displayCtx – The
DisplayContext
of theCanvasPanel
that owns thisShellPanel
.frame – The
FSLeyesFrame
that owns thisShellPanel
.
- destroy()[source]¶
Must be called when this
ShellPanel
is no longer needed. Calls theFSLeyesPanel.destroy()
method.
- getActions()[source]¶
Overrides
ActionProvider.getActions()
. Currently returns an empty list.
- __annotations__ = {}¶
- __module__ = 'fsleyes.views.shellpanel'¶