A city of the second class shall have the power by ordinance to license, tax, suppress, regulate, and prohibit hawkers, peddlers, pawnbrokers, theatrical and other exhibitions, shows, and other amusements and to revoke such licenses for violation of such ordinances.