The Tin Star (1957)
The Tin Star was first a short story then a 1957 American western film directed by Anthony Mann and starring Henry Fonda and Anthony Perkins, in one of Perkins' first roles. The film became one of the few low budget westerns to be nominated for the Academy Award for Best Writing, Story or Screenplay. Since its release, the film has become one of the classics of the genre.
More at Wikipedia.