spark.graph_editor.widgets.line_edits#

Classes#

QStrLineEdit

A simple QLineEdit with a placeholder.

QString

Custom QWidget used for string fields in the SparkGraphEditor's Inspector.

QIntLineEdit

A QLineEdit that only accepts integers.

QInt

Custom QWidget used for int fields in the SparkGraphEditor's Inspector.

QFloatLineEdit

A QLineEdit that only accepts floating-point numbers with flexible precision.

QFloat

Custom QWidget used for float fields in the SparkGraphEditor's Inspector.

Module Contents#

class spark.graph_editor.widgets.line_edits.QStrLineEdit(initial_value, placeholder='', **kwargs)[source]#

Bases: PySide6.QtWidgets.QLineEdit

A simple QLineEdit with a placeholder.

Parameters:
  • initial_value (str)

  • placeholder (str)

class spark.graph_editor.widgets.line_edits.QString(initial_value, placeholder='', **kwargs)[source]#

Bases: spark.graph_editor.widgets.base.QInput

Custom QWidget used for string fields in the SparkGraphEditor’s Inspector.

Parameters:
  • initial_value (str)

  • placeholder (str)

get_value()[source]#

Returns the widget value.

Return type:

str

set_value(value)[source]#

Sets the widget value.

Parameters:

value (str)

Return type:

None

class spark.graph_editor.widgets.line_edits.QIntLineEdit(initial_value, bottom_value=None, placeholder=None, **kwargs)[source]#

Bases: PySide6.QtWidgets.QLineEdit

A QLineEdit that only accepts integers.

Parameters:
  • initial_value (int)

  • bottom_value (int | None)

  • placeholder (int | None)

get_value()[source]#
Return type:

int

class spark.graph_editor.widgets.line_edits.QInt(initial_value=0, bottom_value=None, placeholder=None, **kwargs)[source]#

Bases: spark.graph_editor.widgets.base.QInput

Custom QWidget used for int fields in the SparkGraphEditor’s Inspector.

Parameters:
  • initial_value (int)

  • bottom_value (int | None)

  • placeholder (int | None)

get_value()[source]#

Returns the widget value.

Return type:

int

set_value(value)[source]#

Sets the widget value.

Parameters:

value (int)

Return type:

None

class spark.graph_editor.widgets.line_edits.QFloatLineEdit(initial_value, bottom_value=None, placeholder=None, **kwargs)[source]#

Bases: PySide6.QtWidgets.QLineEdit

A QLineEdit that only accepts floating-point numbers with flexible precision.

Parameters:
  • initial_value (float)

  • bottom_value (float | None)

  • placeholder (float | None)

get_value()[source]#
Return type:

float

class spark.graph_editor.widgets.line_edits.QFloat(initial_value=0, bottom_value=None, placeholder=None, **kwargs)[source]#

Bases: spark.graph_editor.widgets.base.QInput

Custom QWidget used for float fields in the SparkGraphEditor’s Inspector.

Parameters:
  • initial_value (float)

  • bottom_value (float | None)

  • placeholder (float | None)

get_value()[source]#

Returns the widget value.

Return type:

float

set_value(value)[source]#

Sets the widget value.

Parameters:

value (float)

Return type:

None