Your IP : 3.144.119.149
3
� fuM �
@ s� d Z ddlZddlT ddlmZ ddlmZmZ ddlm Z dZ
dZed fZd
Z
d"ZdZdZdZdZdZG dd� d�Zedkr�ddlmZ eddd d!� dS )#zH
An auto-completion window for IDLE, used by the autocomplete extension
� N)�*)� Scrollbar)�COMPLETE_FILES�COMPLETE_ATTRIBUTES)�MC_SHIFTz<<autocompletewindow-hide>>z
<FocusOut>z
<ButtonPress>z<<autocompletewindow-keypress>>�<Key>�<Key-BackSpace>�<Key-Return>� <Key-Tab>�<Key-Up>�
<Key-Down>�
<Key-Home>� <Key-End>�<Key-Prior>�
<Key-Next>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 S )NF)�widget�autocompletewindow�listbox� scrollbar�origselforeground�origselbackground�completions�morecompletions�mode�start�
startindex�lasttypedstart�userwantswindowZhideid�
keypressid�listupdateid�winconfigid�keyreleaseid�
doubleclickid�lastkey_was_tab)�selfr � r&