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.ViewPanelA
ShellPanelis aViewPanelwhich contains an interactive Python shell.A
ShellPanelallows the user to programmatically interact with theOverlayList, and with theDisplayContextandSceneOptsinstances associated with theCanvasPanelthat owns thisShellPanel.-
__init__(parent, overlayList, displayCtx, frame)¶ Create a
ShellPanel.Parameters: - parent – The
wxparent object, assumed to be theCanvasPanelthat owns thisShellPanel. - overlayList – The
OverlayList. - displayCtx – The
DisplayContextof theCanvasPanelthat owns thisShellPanel. - frame – The
FSLeyesFramethat owns thisShellPanel.
- parent – The
-
destroy()¶ Must be called when this
ShellPanelis 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)¶