(self)
Set zooming bindings with the keyboard.
Set zooming bindings with the keyboard.
Set zooming bindings with the keyboard .
def set_zooming_keyboard(self):
        """Set zooming bindings with the keyboard."""
        # Zooming: ALT + key arrows
        self.set('KeyPress', 'Zoom',
                    key='Left', description='X-', key_modifier='Control', 
                    param_getter=lambda p: (-.25, 0, 0, 0))
        self.set('KeyPress', 'Zoom',
                    key='Right', description='X+', key_modifier='Control', 
                    param_getter=lambda p: (.25, 0, 0, 0))
        self.set('KeyPress', 'Zoom',
                    key='Up', description='Y+', key_modifier='Control', 
                    param_getter=lambda p: (0, 0, .25, 0))
        self.set('KeyPress', 'Zoom',
                    key='Down', description='Y-', key_modifier='Control', 
                    param_getter=lambda p: (0, 0, -.25, 0))
def set_zooming_keyboard ( self ) : # Zooming: ALT + key arrows self . set ( 'KeyPress' , 'Zoom' , key = 'Left' , description = 'X-' , key_modifier = 'Control' , param_getter = lambda p : ( - .25 , 0 , 0 , 0 ) ) self . set ( 'KeyPress' , 'Zoom' , key = 'Right' , description = 'X+' , key_modifier = 'Control' , param_getter = lambda p : ( .25 , 0 , 0 , 0 ) ) self . set ( 'KeyPress' , 'Zoom' , key = 'Up' , description = 'Y+' , key_modifier = 'Control' , param_getter = lambda p : ( 0 , 0 , .25 , 0 ) ) self . set ( 'KeyPress' , 'Zoom' , key = 'Down' , description = 'Y-' , key_modifier = 'Control' , param_getter = lambda p : ( 0 , 0 , - .25 , 0 ) )