pySimBlocks.gui.dialogs.block_dialog

class pySimBlocks.gui.dialogs.block_dialog.BlockDialog(block: BlockItem, readonly: bool = False)[source]

Bases: QDialog

Edit or inspect the parameters of a block instance.

block

Block item being edited or inspected.

meta

Block metadata describing the dialog content.

instance

Block instance bound to the dialog.

readonly

Whether the dialog is read-only.

session

Metadata-defined dialog session object.

build_meta_layout(layout: QVBoxLayout)[source]

Build the metadata-defined parameter form.

Parameters:

layout – Parent layout receiving the form.

build_buttons_layout(layout: QVBoxLayout)[source]

Build the dialog action buttons.

Parameters:

layout – Parent layout receiving the button row.

apply()[source]

Apply current dialog values to the bound block.

ok()[source]

Apply current values and close the dialog.

open_help()[source]

Open the block help dialog if documentation is available.

staticMetaObject = PySide6.QtCore.QMetaObject("BlockDialog" inherits "QDialog": )