def __init__(self, width, height, x=0, y=0, id=None): """[summary] Args: width ([type]): [description] height ([type]): [description] x (int, optional): [description]. Defaults to 0. y (int, optional): [description]. Defaults to 0. id ([type], optional): [description]. Defaults to None. """ super().__init__(id) Base.integer_validator(self, "width", width) Base.greater_validator(self, "width", width) Base.integer_validator(self, "height", height) Base.greater_validator(self, "height", height) Base.integer_validator(self, "x", x) Base.greater_iqual_validator(self, "x", x) Base.integer_validator(self, "y", y) Base.greater_iqual_validator(self, "y", y) self.__width = width self.__height = height self.__x = x self.__y = y
def y(self, value): """[summary] Args: value ([type]): [description] """ Base.integer_validator(self, "y", value) Base.greater_iqual_validator(self, "y", value) self.__y = value