She was soon cast as the wife of Mr. Newhart 's character , a mild-mannered Chicago psychologist , and the series ran for six seasons , from 1972 to 1978 , as part of CBS 's ratings-winning Saturday-night lineup .