simuran.ui.node_elements module

simuran.ui.node_elements.create_code_block(label, tooltip='Inline Python code', width=200, height=400)
simuran.ui.node_elements.create_file_select(label, tooltip='', output=False)

Create a file select attribute.

Parameters:
  • label (str) – The label for the file select.
  • tooltip (str, optional) – The tooltip for the file select, by default “”
  • output (bool, optional) – Whether the file select is an output, by default False
Returns:

The file select attribute.

Return type:

dict

simuran.ui.node_elements.create_input(label, hint, tooltip='Connect a source file node.', width=200)

Create an input attribute.

Parameters:
  • label (str) – The label for the parameter.
  • tooltip (str, optional) – The tooltip for the parameter, by default None
  • width (int, optional) – The width for the parameter, by default 200
Returns:

The parameter attribute.

Return type:

dict

simuran.ui.node_elements.create_parameter(label, tooltip=None, width=200, type_='TEXT')

Create a parameter attribute.

Parameters:
  • label (str) – The label for the parameter.
  • tooltip (str, optional) – The tooltip for the parameter, by default None
  • width (int, optional) – The width for the parameter, by default 200
  • type (str, optional) – either TEXT, INT, or FLOAT, by default “TEXT”
Returns:

The parameter attribute.

Return type:

dict