mmSolver.ui.nodes#

Defines a basic node class able to be used for tree data models.

mmSolver.ui.nodes.get_nodes_recursively(top_node)#
class mmSolver.ui.nodes.Node(name, data=None, toolTip=None, statusTip=None, parent=None, icon=None, enabled=True, editable=False, selectable=True, checkable=False, neverHasChildren=False)#
name()#
setName(name)#
toolTip()#
setToolTip(toolTip)#
statusTip()#
setStatusTip(statusTip)#
color()#
setColor(color)#
data()#
setData(value)#
enabled()#

Can the data be enabled?

setEnabled(value)#
checkable()#

Can the data be checked?

setCheckable(value)#
editable()#

Can the data be edited?

setEditable(value)#
selectable()#

Can the data be selected?

setSelectable(value)#
neverHasChildren()#

Optimisation, only set True if this is surely the last child node.

setNeverHasChildren(value)#
icon()#
addChild(child)#
insertChild(position, child)#
removeChild(position)#
child(row)#
childCount()#
children()#
parent()#
row()#
parentTags()#

Get list of names for all nodes above the current node.

Returns:

list of strs

childrenTags()#

Get list of names for nodes below the current node.

Returns:

list of strs

allTags()#

Get list of names for nodes above and below the current node.

Returns:

list of strs

allTagsStr()#