If any officer of the state, district, county, city, town or other governmental subdivision of this state shall die while in office, and shall leave a surviving spouse, the said surviving spouse shall be eligible (if otherwise qualified) to be appointed to and to hold said office during the term for which the said officer was elected or appointed, regardless of the degree of relationship by either