def METHOD_NAME(self):
    if self._mesh is not None and self._part is not None:
        self._meshVisible = self._mesh.ViewObject.isVisible()
        self._partVisible = self._part.ViewObject.isVisible()
        self._mesh.ViewObject.hide()
        self._part.ViewObject.show()