Wikipedia
Gunspinning
Gunspinning refers to the old west tradition and Hollywood legend of a cowboy gunslinger twirling his pistol around his trigger finger. Gunspinning is a western art such as trick roping, and is sometimes referred as gunplay, gun artistry, and gun twirling. Gunspinning is seen in many classic TV and film Westerns, such as Shane and The Good, the Bad and the Ugly.
The majority of gunspinning is seen as a precursor to putting the gun back in its holster. It may be used as a fancy ending to a trick shot, or just to impress or intimidate an opponent.