msspec_python3/msspec/msspecgui/datafloweditor/ilayoutmanager.py

13 lines
354 B
Python
Raw Normal View History

2019-11-14 15:16:51 +01:00
import abc
class ILayoutManager(object):
@abc.abstractmethod
def compute_operators_position(self, data_flow):
"""
:param DataFlow data_flow: the data flow that we want to compute the layout for
:return dict(msspecgui.dataflow.Operator, (int, int)): a (x, y) position for each operator
"""
return {}