spyder.api.shellconnect.status#

Status bar widget that shows content that comes from the IPython console.

Classes

ShellConnectStatusBarWidget(parent)

Base class for status bar widgets whose info depends on the current shell.

class spyder.api.shellconnect.status.ShellConnectStatusBarWidget(parent)[source]#

Bases: StatusBarWidget, ShellConnectMixin

Base class for status bar widgets whose info depends on the current shell.

__init__(parent)[source]#

Base class for status bar widgets.

These are composed of the following widgets, which are arranged in a QHBoxLayout from left to right:

  • Icon

  • Label

  • Custom QWidget

  • Spinner

Parameters:
  • show_icon (bool) – Show an icon in the widget.

  • show_label (bool) – Show a label in the widget.

  • show_spinner (bool) – Show a spinner.

Notes

  1. To use an icon, you need to redefine the get_icon method.

  2. To use a label, you need to call set_value.

update_status(status)[source]#

Actions to take to update the widget status after switching consoles.

on_kernel_start(shellwidget)[source]#

Actions to take when the kernel starts.

config_spyder_kernel(shellwidget)[source]#

Actions to take to configure the kernel.

set_shellwidget(shellwidget)[source]#

Actions to take when setting (i.e. giving focus to) a shellwidget.

add_shellwidget(shellwidget)[source]#

Actions to take when adding a shellwidget.

remove_shellwidget(shellwidget)[source]#

Actions to take when removing a shellwidget.

add_errored_shellwidget(shellwidget)[source]#

Actions to take when a shellwidget errored.