i've not seen the film,but it sounds like Alexandre/Very Happy Alexandre,French,1967,directed by Yves Robert,about a farmer who takes to his bed after the death of his wife and stays in his room with his dog.