def __init__(self, view, attribute, other=None, other_attribute=LayoutAttribute.notAnAttribute):
assert(isinstance(view, LayoutProxy))
assert(isinstance(attribute, LayoutAttribute))
self._view = view
self._attribute = attribute
self._constraints = {}
if other:
assert(isinstance(other, ui.View))
assert(isinstance(other_attribute, LayoutAttribute))
self._other = other
self._other_attribute = other_attribute
else:
self._other = None
self._other_attribute = LayoutAttribute.notAnAttribute
评论列表
文章目录