(self)
Set zooming bindings with the keyboard.
Set zooming bindings with the keyboard.
Set zooming bindings with the keyboard .
def set_rotation_keyboard(self):
        """Set zooming bindings with the keyboard."""
        # Rotation: ALT + key arrows
        self.set('KeyPress', 'Rotation',
                    key='Left', key_modifier='Shift', 
                    param_getter=lambda p: (-.25, 0))
        self.set('KeyPress', 'Rotation',
                    key='Right', key_modifier='Shift', 
                    param_getter=lambda p: (.25, 0))
        self.set('KeyPress', 'Rotation',
                    key='Up', key_modifier='Shift', 
                    param_getter=lambda p: (0, .25))
        self.set('KeyPress', 'Rotation',
                    key='Down', key_modifier='Shift', 
                    param_getter=lambda p: (0, -.25))
def set_rotation_keyboard ( self ) : # Rotation: ALT + key arrows self . set ( 'KeyPress' , 'Rotation' , key = 'Left' , key_modifier = 'Shift' , param_getter = lambda p : ( - .25 , 0 ) ) self . set ( 'KeyPress' , 'Rotation' , key = 'Right' , key_modifier = 'Shift' , param_getter = lambda p : ( .25 , 0 ) ) self . set ( 'KeyPress' , 'Rotation' , key = 'Up' , key_modifier = 'Shift' , param_getter = lambda p : ( 0 , .25 ) ) self . set ( 'KeyPress' , 'Rotation' , key = 'Down' , key_modifier = 'Shift' , param_getter = lambda p : ( 0 , - .25 ) )