Your IP : 18.217.103.111
B
YI~d0 � @ sz d dl Z d dlmZmZmZ d dlmZ dd� ZG dd� d�Z dd� Z
d d
� Zdd� Ze
d
krvd dlmZ eddd� dS )� N)� StringVar�
BooleanVar�TclErrorc C s t | d�st| �| _| jS )N�
_searchengine)�hasattr�SearchEnginer )�root� r �9/opt/alt/python37/lib64/python3.7/idlelib/searchengine.py�get s
r c @ s� e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� Zdd� Zd
d� Z dd� Z
dd� Zdd� Zdd� Z
d"dd�Zd#dd�Zd$dd�Zd%d d!�ZdS )&r c C sR || _ t|d�| _t|d�| _t|d�| _t|d�| _t|d�| _t|d�| _d S )N� FT) r r �patvarr �revar�casevar�wordvar�wrapvar�backvar)�selfr r r r
�__init__ s zSearchEngine.__init__c C s
| j �� S )N)r
r )r r r r
�getpat% s zSearchEngine.getpatc C s | j �|� d S )N)r
�set)r �patr r r
�setpat( s zSearchEngine.setpatc C s
| j �� S )N)r r )r r r r
�isre+ s zSearchEngine.isrec C s
| j �� S )N)r r )r r r r
�iscase. s zSearchEngine.iscasec C s
| j �� S )N)r r )r r r r
�isword1 s zSearchEngine.iswordc C s
| j �� S )N)r r )r r r r
�iswrap4 s zSearchEngine.iswrapc C s
| j �� S )N)r r )r r r r
�isback7 s zSearchEngine.isbackc C s | � � rt�|�}| �|� d S )N)r �re�escaper )r r r r r
�setcookedpat<