pySimBlocks.gui.blocks.interfaces.bus_from¶
- class pySimBlocks.gui.blocks.interfaces.bus_from.BusFromMeta[source]¶
Bases:
BlockMetaDescribe the GUI metadata of the BusFrom interface block.
The
tagparameter is rendered as a dropdown populated with all tags currently declared by Goto blocks in the same diagram. If no Goto block is present (e.g. outside the full GUI context), the field falls back to a plain text edit so the user can still type a tag manually.- build_param(session: BlockDialogSession, form: QFormLayout, readonly: bool = False) None[source]¶
Build parameter widgets, replacing the tag field with a dropdown.
When a project state is available, the
tagparameter is rendered as aQComboBoxpopulated with every tag currently declared by a Goto block in the diagram. An extra(free text)entry lets the user type an arbitrary tag when the desired Goto does not exist yet. If no project state is available the tag falls back to a plainQLineEdit.All other parameters use the standard widget builder from the base class.
- Parameters:
session – Active dialog session.
form – Form layout receiving the widgets.
readonly – Whether the dialog is read-only.