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. The class-source metadata (module, file path, “Edit class file” link) is rendered by PropertiesPanel._add_class_section – the legacy _add_class_source_info shim is now a no-op kept only so any mixin overrides keep working unchanged. These are mixed into PropertiesPanel via ScriptSectionMixin.

Module Contents

Classes

ScriptSectionMixin

Mixin that adds script section methods to PropertiesPanel.

API

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

Mixin that adds script section methods to PropertiesPanel.

Expects the host class to provide:

  • self.state: State or None

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

  • self._rebuild(): full inspector rebuild