simvx.editor.panels.inspector_script

Inspector script section – script attachment and embedding UI.

Provides methods for building the script section of the inspector: attach, detach, embed, and open script for the selected node. These are mixed into InspectorPanel via ScriptSectionMixin.

Module Contents

Classes

ScriptSectionMixin

Mixin that adds script section methods to InspectorPanel.

API

class simvx.editor.panels.inspector_script.ScriptSectionMixin[source]

Mixin that adds script section methods to InspectorPanel.

Expects the host class to provide:

  • self.state: EditorState or None

  • self.add_child(child): add a child control

  • self._rebuild(): full inspector rebuild