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)¶ 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)¶ 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
()¶ Must be called when this
ShellPanel
is no longer needed. Calls theFSLeyesPanel.destroy()
method.
-
getActions
()¶ Overrides
ActionProvider.getActions()
. Currently returns an empty list.
-
__module__
= 'fsleyes.views.shellpanel'¶
-
-
fsleyes.views.shellpanel.
Interpreter_runsource
(self, source)¶