관리-도구
편집 파일: autocomplete.cpython-36.opt-2.pyc
3 ��2al$ � @ s� d dl Z d dlZd dlZedd�\ZZd dlmZ d dlm Z d dl mZ d dlZej ej d Ze jZe jrxee j7 ZG dd � d �Zej� ed kr�d dlmZ eddd � dS )� N� � )�autocomplete_w)�idleConf)�HyperParser�_c @ sv e Zd Zddd�Zedd� �Zdd� Zddd �Zd d� Zdd � Z dd� Z dd� Zdd� Zddd�Z dd� Zdd� ZdS )�AutoCompleteNc C s, || _ |d k r(|j| _d | _d | _d | _d S )N)�editwin�text�autocompletewindow�_delayed_completion_id�_delayed_completion_index)�selfr � r �1/opt/alt/python36/lib64/python3.6/autocomplete.py�__init__ s zAutoComplete.__init__c C s t jdddddd�| _d S )N� extensionsr � popupwait�intr )�type�default)r Z GetOptionr )�clsr r r �reload) s zAutoComplete.reloadc C s t j| j�S )N)r ZAutoCompleteWindowr )r r r r �_make_autocomplete_window. s z&AutoComplete._make_autocomplete_windowc C s | j r| j j� d | _ d S )N)r Zhide_window)r �eventr r r �_remove_autocomplete_window1 s z(AutoComplete._remove_autocomplete_windowc C s | j ddd� dS )NTF�break)�open_completions)r r r r r �force_open_completions_event6 s z)AutoComplete.force_open_completions_eventc C sB | j jd�}|dkr&| jdddt� n|tkr>| jdddt� d S )Nz insert-1c�.F)r �get�_open_completions_later�COMPLETE_ATTRIBUTES�SEPS�COMPLETE_FILES)r r Zlastcharr r r �try_open_completions_event= s z'AutoComplete.try_open_completions_eventc C sd t |d�r|js$| jjdd�j� r(d S | jrF| jj� rF| jj� dS | jddd�}|r\dS d S d S )N�mc_statezinsert linestart�insertr FT) �hasattrr&