관리-도구
편집 파일: searchengine.cpython-36.opt-2.pyc
3 ��2a0 � @ sx d dl Z d dlmZmZmZ d dljZdd� ZG dd� d�Z dd� Z d d � Zdd� Ze d krtd dlmZ eddd� dS )� N)� StringVar� BooleanVar�TclErrorc C s t | d�st| �| _| jS )N� _searchengine)�hasattr�SearchEnginer )�root� r �1/opt/alt/python36/lib64/python3.6/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 j� S )N)r r )r r r r �getpat% s zSearchEngine.getpatc C s | j j|� d S )N)r �set)r �patr r r �setpat( s zSearchEngine.setpatc C s | j j� S )N)r r )r r r r �isre+ s zSearchEngine.isrec C s | j j� S )N)r r )r r r r �iscase. s zSearchEngine.iscasec C s | j j� S )N)r r )r r r r �isword1 s zSearchEngine.iswordc C s | j j� S )N)r r )r r r r �iswrap4 s zSearchEngine.iswrapc C s | j j� S )N)r r )r r r r �isback7 s zSearchEngine.isbackc C s | j � rtj|�}| j|� d S )N)r �re�escaper )r r r r r �setcookedpat<