Electric generator of the pushbutton type comprising: - a casing (11,111,211,311,417), - a ferromagnetic element (13,113,213,313,413,416), housed in said casing (11,111,211,311,417) and having at least a portion fixed with respect to this, - an electric winding (14,114,214,314,414) mounted on said ferromagnetic element (13,113,213,313,413,416) and provided with terminals for feeding an external user circuit, - a permanent magnet (15,115,215,315,415) forming with said ferromagnetic element (13,113,213,313,413,416) a magnetic circuit linked with said electric winding (14,114,214,314,414), - a pushbutton projecting from said casing (11,111,211,311,417) with a portion that can be activated by the operator and movable between a rest portion and a stressed portion, in which the characteristics of said magnetic circuit are modified, wherein - said pushbutton (12,112,212,312,412) is provided with at least an arm (16,116,216,316,419) integral with this, - in the rest condition of said pushbutton (12,112,212,312,412) the ferromagnetic element (13,113,213,313,413,416) and the permanent magnet (15,115,215,315,415) are kept in contact in attracted condition and form a magnetic circuit without air gaps and said arm (16,116,216,316,419) of said pushbutton (12,112,212,312,412) is in direct contact with a component (15,115,215,315,416) of said magnetic circuit, - in the stressed condition of said pushbutton (12,112,212,312,412) its arm (16,116,216,316,419) acts in the sense of creating in said magnetic circuit at least an air gap of such a size to assure in any case a magnetic attraction force between the parts delimiting it, the fixed portion of said ferromagnetic element (13,113,213,313,413,416) forming a limit stop for said pushbutton (12,112,212,312,412) in said stressed condition. - a casing (11,111,211,311,417), - a ferromagnetic element (13,113,213,313,413,416), housed in said casing (11,111,211,311,417) and having at least a portion fixed with respect to this, - an electric winding (14,114,214,314,414) mounted on said ferromagnetic element (13,113,213,313,413,416) and provided with terminals for feeding an external user circuit, - a permanent magnet (15,115,215,315,415) forming with said ferromagnetic element (13,113,213,313,413,416) a magnetic circuit linked with said electric winding (14,114,214,314,414), - a pushbutton projecting from said casing (11,111,211,311,417) with a portion that can be activated by the operator and movable between a rest portion and a stressed portion, in which the characteristics of said magnetic circuit are modified, wherein - said pushbutton (12,112,212,312,412) is provided with at least an arm (16,116,216,316,419) integral with this, - in the rest condition of said pushbutton (12,112,212,312,412) the ferromagnetic element (13,113,213,313,413,416) and the permanent magnet (15,115,215,315,415) are kept in contact in attracted condition and form a magnetic circuit without air gaps and said arm (16,116,216,316,419) of said pushbutton (12,112,212,312,412) is in direct contact with a component (15,115,215,315,416) of said magnetic circuit, - in the stressed condition of said pushbutton (12,112,212,312,412) its arm (16,116,216,316,419) acts in the sense of creating in said magnetic circuit at least an air gap of such a size to assure in any case a magnetic attraction force between the parts delimiting it, the fixed portion of said ferromagnetic element (13,113,213,313,413,416) forming a limit stop for said pushbutton (12,112,212,312,412) in said stressed condition.