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 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)

Create a ShellPanel.

Parameters:
destroy()

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

getActions()

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

__module__ = 'fsleyes.views.shellpanel'
fsleyes.views.shellpanel.Interpreter_runsource(self, source)