File: D:/Python311/Lib/idlelib/idle_test/__pycache__/test_textview.cpython-311.opt-1.pyc
�
��Vc� � �� � d Z ddlmZ ddlmZ ed� � ddlZddlZddlm Z m
Z
mZmZm
Z
ddlmZ ddlmZ dd lmZ d
� Zd� Z G d� d
ej � � Z G d� dej � � Z G d� dej � � Z G d� dej � � Z G d� dej � � Z G d� dej � � Z G d� dej � � Zedk r ej d�� � dS dS )a Test textview, coverage 100%.
Since all methods and functions create (or destroy) a ViewWindow, which
is a widget containing a widget, etcetera, all tests must be gui tests.
Using mock Text would not change this. Other mocks are used to retrieve
information about calls.
� )�textview)�requires�guiN)�Tk�TclError�CHAR�NONE�WORD)�Button)�Func)� Mbox_funcc �T � t � � at � � � d S �N�r �root�withdraw� � �3D:\Python311\Lib\idlelib\idle_test\test_textview.py�setUpModuler s � �
�4�4�D��M�M�O�O�O�O�Or c �l � t � � � t � � � b d S r �r �update_idletasks�destroyr r r �tearDownModuler s( � ��������L�L�N�N�N���r c �J � e Zd Z e� � Z e� � Z e� � ZdS )�VWN)�__name__�
__module__�__qualname__r � transient�grab_set�wait_windowr r r r r # s/ � � � � � �����I��t�v�v�H��$�&�&�K�K�Kr r c �&