def METHOD_NAME(self):
    if self.parent.obj_type == self.obj_type:
        pos_y = self.parent.child_pos_y(self.id)
    elif self.parent.obj_type == "main_frame":
        pos_y = self._pos_y
    else:
        pos_y = self.parent.value_pos_y
    return int(pos_y)