def METHOD_NAME(self):
    if self.parent.obj_type == self.obj_type:
        pos_x = self.parent.child_pos_x(self.id)
    elif self.parent.obj_type == "main_frame":
        pos_x = self._pos_x
    else:
        pos_x = self.parent.value_pos_x
    return int(pos_x)