A judge who shall file for nomination for or election to any public office other than a judicial office shall forfeit automatically his judicial office.
Pennsylvania Legal Code
A judge who shall file for nomination for or election to any public office other than a judicial office shall forfeit automatically his judicial office.