#NEWLINE# def _on_key_pressed( self , event ) : #NEWLINE# #INDENT# ' Dynamic trait change handler. ' #NEWLINE# if ( event . alt_down and ( event . key_code == 317 ) ) : #NEWLINE# #INDENT# zoom = self . shell . control . GetZoom ( ) #NEWLINE# if ( zoom != 20 ) : #NEWLINE# #INDENT# self . shell . control . SetZoom ( ( zoom + 1 ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( event . alt_down and ( event . key_code == 319 ) ) : #NEWLINE# #INDENT# zoom = self . shell . control . GetZoom ( ) #NEWLINE# if ( event != ( - 10 ) ) : #NEWLINE# #INDENT# self . shell . control . SetZoom ( ( zoom - 1 ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return