|
__init__(self,
name='NoName',
sourceCode=None,
originalClass=None,
constrkw={},
library=None,
progbar=0,
**kw)
|
|
isMacro(self)
Returns False if this node is not a MacroNode, returns True if
MacroNode
|
|
schedule_cb(self,
event=None)
|
|
beforeRemovingFromNetwork(self)
|
|
beforeAddingToNetwork(self,
network)
|
|
afterAddingToNetwork(self)
|
|
buildIcons(self,
canvas,
posx,
posy)
Build NODE icon with ports etc
|
|
expand(self,
event=None)
|
|
shrink(self,
event=None)
|
|
getRootMacro(self)
This method is used to find the root macro node for nested
macros
|
|
getNodeDefinitionSourceCode(self,
networkName,
indent="",
ignoreOriginal=False)
This method builds the text-string to describe a macro node in a
saved file.
|
|
getNodeSourceCodeForPorts(self,
networkName,
indent="",
full=0)
We need to override the baseclass method since we do not want to
save port modifications to a macro node
|
|
getAfterConnectionsSourceCode(self,
networkName,
indent="",
ignoreOriginal=False)
This method allows users to add source code that needs to be
generated after nodes were connected, which might trigger the
creation of new ports.
|
|
resetTags(self)
This method subclasses NetworkNode.resetTags().
|
|
buildOriginalList(self)
Summary: used to catch delete node and delete connection events in
the macro network.
|
|
getNodeSourceCode(self,
className,
networkName='self.masterNetwork',
indent="",
dependencies=True)
This method is called through the 'save source code' mechanism.
|
|
getHeaderBlock(self,
className,
indent="")
Generate source code to import a node from a library or file.
|
|
getInitBlock(self,
className,
indent="")
Generate source code to define the __init__() method of the node,
building the correct constrkw dict, etc.
|
|
getBeforeBlock(self,
cache,
indent="")
|
|
getAfterBlock(self,
cache,
networkName,
indent="",
ignoreOriginal=False)
|
|
Inherited from MacroBase:
deletePort,
updateCode
Inherited from items.NetworkNode:
addInputPort,
addOutputPort,
addSpecialPorts,
buildNodeIcon,
buildSmallIcon,
deletePortByName,
deleteSmallIcon,
deselect,
editorVisible,
getColor,
getFont,
hideSpecialPorts,
isExpanded,
refreshInputPortData,
resizeIcon,
select,
setColor,
setFont,
setModifiedTag,
setProgressBar,
showSpecialPorts,
updatePosXPosY
Inherited from items.NetworkNodeBase:
addSaveNodeMenuEntries,
autoResize,
autoResizeX,
autoResizeY,
checkIfNodeForSavingIsDefined,
compareToOrigNodeDescr,
computeFunction,
configure,
cut_cb,
delete_cb,
edit,
editComputeFunction_cb,
evalString,
getComputeFunctionSourceCode,
getConnections,
getDescr,
getInConnections,
getInputPortByName,
getNodeSourceCodeForDoit,
getNodeSourceCodeForInstanciation,
getNodeSourceCodeForModifications,
getNodeSourceCodeForNode,
getNodeSourceCodeForWidgetValue,
getNodeSourceCodeForWidgets,
getOutConnections,
getOutputPortByName,
getOutputPortByType,
getPortsCreationSourceCode,
getSize,
getSourceCode,
getSpecialInputPortByName,
getSpecialOutputPortByName,
getStateDefinitionCode,
getUniqueNodeName,
getWidgetByName,
getWidgetsCreationSourceCode,
getWidgetsForMaster,
getWidthForLabel,
getWidthForNodeWidgets,
getWidthForPorts,
growDown,
growRight,
hideInNodeWidgets,
isModified,
ischild,
move,
moveSelectedNodeEnd,
outputData,
rename,
resetModifiedTag,
safeName,
saveSource,
saveSource_cb,
schedule,
scheduleChildren,
setFunction,
showInNodeWidgets,
startMoveOneNode,
toggleNodeExpand_cb,
toggleParamPanel_cb
Inherited from itemBase.NetworkItems:
__repr__,
afterRemovingFromNetwork,
deleteIcon,
editNodeMenu,
freeze,
gettags,
hideParamPanel,
highlight,
introspect,
postItemMenu,
run,
toggleAutoRun_cb,
toggleFrozen_cb,
unfreeze,
unhighlight
Inherited from itemBase.NetworkItemsBase:
delEditor,
getEditor,
setEditor
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__str__
|