All trials in the city court for violation of the bylaws or ordinances of any city or incorporated town shall be before the judge without the intervention of a jury, but the defendant, upon appeal, shall have the right to a trial by jury in the circuit court.