def labels_offset(self, value): self._validate_unlocked() value = _u.validate_attr_is_coord(self, "labels_offset", value, True) self._labels_offset_x = value[0] self._labels_offset_y = value[1] self._log_setter("labels_offset")
def position_shift(self, value): value = _u.validate_attr_is_coord(self, "position_shift", value, change_none_to_0=True) self._position_shift = value self._log_property_changed("position_shift")
def position(self, value): self._validate_unlocked() value = _u.validate_attr_is_coord(self, "position", value) self._mid_x = value[0] self._mid_y = value[1] self._log_setter("position")
def position(self, value): value = _u.validate_attr_is_coord(self, "position", value, change_none_to_0=True) for s in self._stimuli.values(): s.position = value self._log_property_changed("position", value)
def center(self, value): value = _u.validate_attr_is_coord(self, "center", value) self._center = value
def center(self, value): value = _u.validate_attr_is_coord(self, "center", value) self._center = value self._log_property_changed("center")
def end_point(self, value): value = _u.validate_attr_is_coord(self, "end_point", value) self._end_point = value self._log_property_changed("end_point")
def start_point(self, value): value = _u.validate_attr_is_coord(self, "start_point", value) self._start_point = value self._log_property_changed("start_point")
def position(self, value): _u.validate_attr_is_coord(self, "position", value, allow_float=True) self._position = (value[0], value[1])
def size(self, value): _u.validate_attr_is_coord(self, "size", value) _u.validate_attr_positive(self, "size[0]", value[0]) _u.validate_attr_positive(self, "size[1]", value[1]) self._size = (value[0], value[1])