def __init__(self, guake):
        """Constructor of Keyboard, only receives the guake instance
        to be used in internal methods.
        """
        self.guake = guake
        self.accel_group = None  # see reload_accelerators

        # Setup global keys
        self.globalhotkeys = {}
        globalkeys = ['show-hide', 'show-focus']
        for key in globalkeys:
            guake.settings.keybindingsGlobal.onChangedValue(key, self.reload_global)
            guake.settings.keybindingsGlobal.triggerOnChangedValue(
                guake.settings.keybindingsGlobal, key, None
            )

        # Setup local keys
        keys = [
            'toggle-fullscreen', 'new-tab', 'new-tab-home', 'close-tab', 'rename-current-tab',
            'previous-tab', 'next-tab', 'clipboard-copy', 'clipboard-paste', 'quit', 'zoom-in',
            'zoom-out', 'increase-height', 'decrease-height', 'increase-transparency',
            'decrease-transparency', 'toggle-transparency', "search-on-web", 'move-tab-left',
            'move-tab-right', 'switch-tab1', 'switch-tab2', 'switch-tab3', 'switch-tab4',
            'switch-tab5', 'switch-tab6', 'switch-tab7', 'switch-tab8', 'switch-tab9',
            'switch-tab10', 'switch-tab-last', 'reset-terminal', 'split-tab-vertical',
            'split-tab-horizontal', 'close-terminal', 'focus-terminal-up', 'focus-terminal-down',
            'focus-terminal-right', 'focus-terminal-left', 'move-terminal-split-up',
            'move-terminal-split-down', 'move-terminal-split-left', 'move-terminal-split-right',
            'search-terminal'
        ]
        for key in keys:
            guake.settings.keybindingsLocal.onChangedValue(key, self.reload_accelerators)
            self.reload_accelerators()
def __init__ ( self , guake ) : self . guake = guake self . accel_group = None self . globalhotkeys = { } globalkeys = [ 'show-hide' , 'show-focus' ] for key in globalkeys : guake . settings . keybindingsGlobal . onChangedValue ( key , self . reload_global ) guake . settings . keybindingsGlobal . triggerOnChangedValue ( guake . settings . keybindingsGlobal , key , None ) keys = [ 'toggle-fullscreen' , 'new-tab' , 'new-tab-home' , 'close-tab' , 'rename-current-tab' , 'previous-tab' , 'next-tab' , 'clipboard-copy' , 'clipboard-paste' , 'quit' , 'zoom-in' , 'zoom-out' , 'increase-height' , 'decrease-height' , 'increase-transparency' , 'decrease-transparency' , 'toggle-transparency' , "search-on-web" , 'move-tab-left' , 'move-tab-right' , 'switch-tab1' , 'switch-tab2' , 'switch-tab3' , 'switch-tab4' , 'switch-tab5' , 'switch-tab6' , 'switch-tab7' , 'switch-tab8' , 'switch-tab9' , 'switch-tab10' , 'switch-tab-last' , 'reset-terminal' , 'split-tab-vertical' , 'split-tab-horizontal' , 'close-terminal' , 'focus-terminal-up' , 'focus-terminal-down' , 'focus-terminal-right' , 'focus-terminal-left' , 'move-terminal-split-up' , 'move-terminal-split-down' , 'move-terminal-split-left' , 'move-terminal-split-right' , 'search-terminal' ] for key in keys : guake . settings . keybindingsLocal . onChangedValue ( key , self . reload_accelerators ) self . reload_accelerators ( )
Constructor of Keyboard, only receives the guake instance
        to be used in internal methods.