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 a ViewPanel which contains an interactive Python shell.

A ShellPanel allows the user to programmatically interact with the OverlayList, and with the DisplayContext and SceneOpts instances associated with the CanvasPanel that owns this ShellPanel.

__init__(parent, overlayList, displayCtx, frame)[source]

Create a ShellPanel.

Parameters
destroy()[source]

Must be called when this ShellPanel is no longer needed. Calls the FSLeyesPanel.destroy() method.

getActions()[source]

Overrides ActionProvider.getActions(). Currently returns an empty list.

__annotations__ = {}
__module__ = 'fsleyes.views.shellpanel'
fsleyes.views.shellpanel.Interpreter_runsource(self, source)[source]