관리-도구
편집 파일: autocomplete_w.cpython-37.opt-2.pyc
B YI~d�N � @ s� d dl Z d dlT d dlmZ d dlmZmZ d dlmZ dZ dZ e dfZd Zd Z dZdZd ZdZdZG dd� d�Zedkr�d dlmZ edddd� dS )� N)�*)� Scrollbar)�FILES�ATTRS)�MC_SHIFTz<<autocompletewindow-hide>>z <FocusOut>z <ButtonPress>z<<autocompletewindow-keypress>>)z<Key>z<Key-BackSpace>z<Key-Return>z <Key-Tab>z<Key-Up>z <Key-Down>z <Key-Home>z <Key-End>z<Key-Prior>z <Key-Next>z<Key-Escape>z!<<autocompletewindow-keyrelease>>z<KeyRelease>z<B1-ButtonRelease>z<Configure>z<B1-Double-ButtonRelease>c @ s� e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Zdd � Zd!S )"�AutoCompleteWindowc C s� || _ d | _ | _| _d | _| _d | _d | _d | _d | _ d | _ d | _d | _d | _ | _ | _ | _ | _| _d| _d| _d S )NF)�widget�autocompletewindow�listbox� scrollbar�origselforeground�origselbackground�completions�morecompletions�mode�start� startindex�lasttypedstart�userwantswindowZhideid� keypressid�listupdateid�winconfigid�keyreleaseid� doubleclickid�lastkey_was_tab�is_configuring)�selfr � r �;/opt/alt/python37/lib64/python3.7/idlelib/autocomplete_w.py�__init__ s $zAutoCompleteWindow.__init__c C s� t t| j�t|��}d}x&||k r>| j| || kr>|d7 }qW |t| j�k rv| j�d| j|f d| jt| j�f � |t|�k r�| j�d| j|f ||d � � || _d S )Nr � z%s+%dc)�min�lenr r �deleter �insert)r �newstart�min_len�ir r r � _change_start>