The Shakiest Gun in the West is a 1968 American comedy Western film starring Don Knotts.
Facing prison, Penelope is offered a pardon if she will track down a ring of gun smugglers that also involves a local Indian tribe.
Because the wagon train she plans to accompany will not permit single women to join, she tricks Heywood into a sham marriage.
Her investigation foiled, she makes up a story that she could not sleep alone with Jesse on guard duty on her wedding night and they both return to their wagon with everyone believing her tale.
Jesse, believing that he was responsible, is proud of his accomplishment and is treated as a hero by the wagon train and the entire town, which hears of his deeds.
Later that night, Penelope leaves to search the church where the preacher resides, but Jesse confronts her and demands to know where she is going.
In disguise as an Indian woman after joining the tribe, and after some thoughtful maneuvering, Jesse frees Penelope but suggests they wait for the entire village to get even more drunk before making their escape.
As Penelope sets her sights with her rifle, she is quietly and begrudgingly taken away by the carpenter, an undercover marshal, and his friend as multiple shots ring out.
He orders the chief a rare steak and is reunited with Penelope, who hugs him, and shortly thereafter Penny has to knock out the enamored Indian who has come to town trying to reclaim Jesse the squaw as his.