

def __init__(self, get_globals=None, get_locals=None, history_filename=None, vi_mode=False, _completer=None, _validator=None, _lexer=None, _extra_buffers=None, _extra_buffer_processors=None, _on_start=None, _extra_layout_body=None, _extra_toolbars=None, _input_buffer_height=None, _accept_action=AcceptAction.RETURN_DOCUMENT, _on_exit=AbortAction.RAISE_EXCEPTION):
    self.get_globals = (get_globals or (lambda : {
        
    }))
    self.get_locals = (get_locals or self.get_globals)
    self._completer = (_completer or PythonCompleter(self.get_globals, self.get_locals))
    self._validator = (_validator or PythonValidator(self.get_compiler_flags))
    self.history = (FileHistory(history_filename) if history_filename else InMemoryHistory())
    self._lexer = (_lexer or PygmentsLexer(PythonLexer))
    self._extra_buffers = _extra_buffers
    self._accept_action = _accept_action
    self._on_exit = _on_exit
    self._on_start = _on_start
    self._input_buffer_height = _input_buffer_height
    self._extra_layout_body = (_extra_layout_body or [])
    self._extra_toolbars = (_extra_toolbars or [])
    self._extra_buffer_processors = (_extra_buffer_processors or [])
    self.show_signature = False
    self.show_docstring = False
    self.show_meta_enter_message = True
    self.completion_visualisation = CompletionVisualisation.MULTI_COLUMN
    self.completion_menu_scroll_offset = 1
    self.show_line_numbers = False
    self.show_status_bar = True
    self.wrap_lines = True
    self.complete_while_typing = True
    self._vi_mode = vi_mode
    self.paste_mode = False
    self.confirm_exit = True
    self.accept_input_on_enter = 2
    self.enable_open_in_editor = True
    self.enable_system_bindings = True
    self.enable_input_validation = True
    self.enable_auto_suggest = False
    self.enable_mouse_support = False
    self.enable_history_search = False
    self.highlight_matching_parenthesis = False
    self.show_sidebar = False
    self.show_sidebar_help = True
    self.show_exit_confirmation = False
    self.terminal_title = None
    self.exit_message = 'Do you really want to exit?'
    self.insert_blank_line_after_output = True
    self.prompt_style = 'classic'
    self.all_prompt_styles = {
        'ipython': IPythonPrompt(self),
        'classic': ClassicPrompt(),
    }
    self.get_input_prompt_tokens = (lambda cli: self.all_prompt_styles[self.prompt_style].in_tokens(cli))
    self.get_output_prompt_tokens = (lambda cli: self.all_prompt_styles[self.prompt_style].out_tokens(cli))
    self.code_styles = get_all_code_styles()
    self.ui_styles = get_all_ui_styles()
    self._current_code_style_name = 'default'
    self._current_ui_style_name = 'default'
    if is_windows():
        self._current_code_style_name = 'win32'
    self._current_style = self._generate_style()
    self.true_color = False
    self.options = self._create_options()
    self.selected_option_index = 0
    self.current_statement_index = 1
    self.signatures = []
    self.key_bindings_manager = KeyBindingManager(enable_abort_and_exit_bindings=True, enable_search=True, enable_open_in_editor=Condition((lambda cli: self.enable_open_in_editor)), enable_system_bindings=Condition((lambda cli: self.enable_system_bindings)), enable_auto_suggest_bindings=Condition((lambda cli: self.enable_auto_suggest)), enable_all=Condition((lambda cli: (not (self.show_sidebar or self.show_exit_confirmation)))))
    load_python_bindings(self.key_bindings_manager, self)
    load_sidebar_bindings(self.key_bindings_manager, self)
    load_confirm_exit_bindings(self.key_bindings_manager, self)
    self._get_signatures_thread_running = False

dataset/ETHPy150Open jonathanslenders/ptpython/ptpython/python_input.py PythonInput.__init__/original