(self)
Set panning bindings with the keyboard.
Set panning bindings with the keyboard.
Set panning bindings with the keyboard .
def set_panning_keyboard(self):
        """Set panning bindings with the keyboard."""
        # Panning: keyboard arrows
        self.set('KeyPress', 'Pan',
                    key='Left', description='Left',
                    param_getter=lambda p: (.24, 0))
        self.set('KeyPress', 'Pan',
                    key='Right', description='Right',
                    param_getter=lambda p: (-.24, 0))
        self.set('KeyPress', 'Pan',
                    key='Up', description='Up',
                    param_getter=lambda p: (0, -.24))
        self.set('KeyPress', 'Pan',
                    key='Down', description='Down',
                    param_getter=lambda p: (0, .24))
def set_panning_keyboard ( self ) : # Panning: keyboard arrows self . set ( 'KeyPress' , 'Pan' , key = 'Left' , description = 'Left' , param_getter = lambda p : ( .24 , 0 ) ) self . set ( 'KeyPress' , 'Pan' , key = 'Right' , description = 'Right' , param_getter = lambda p : ( - .24 , 0 ) ) self . set ( 'KeyPress' , 'Pan' , key = 'Up' , description = 'Up' , param_getter = lambda p : ( 0 , - .24 ) ) self . set ( 'KeyPress' , 'Pan' , key = 'Down' , description = 'Down' , param_getter = lambda p : ( 0 , .24 ) )