| Current Path : /opt/alt/python312/lib64/python3.12/test/test_tkinter/__pycache__/ |
| Current File : //opt/alt/python312/lib64/python3.12/test/test_tkinter/__pycache__/test_misc.cpython-312.opt-2.pyc |
�
�#�j�� � � � d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZ d dlm Z m
Z
mZmZ ej d� G d� de ej � Z G d� de ej � Z G d � d
e ej � Z G d� de ej � Z G d
� de
ej � Zdd�Zedk( r ej, � yy)� N)�support)�AbstractTkTest�AbstractDefaultRootTest�requires_tk�get_tk_patchlevel�guic �x � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� Zd� Zd� Zd� Zd� Zy)�MiscTestc � � | j dt j � | j dt j � | j t j � | j dt j � | j dt j � | j dt j � | j dt j � | j dt j � y )N�Widget�CASCADE�re�sys� constants�_tkerror�wantobjects)�assertIn�tkinter�__all__�assertIsNotNoner
�assertNotIn)�selfs �B/opt/alt/python312/lib64/python3.12/test/test_tkinter/test_misc.py�test_allzMiscTest.test_all s� � ��
�
�h����0��
�
�i����1����W�_�_�-�����w���/��������0�����g�o�o�6�����W�_�_�5��������8� c � � t j | j d�� }t j |d�� }| j t |� d� y )N�top)�name�childz!<tkinter.Frame object .top.child>)r �Toplevel�root�Frame�assertEqual�repr)r �t�fs r � test_reprzMiscTest.test_repr s= � ����T�Y�Y�U�3���M�M�!�'�*������a��"E�Fr c
�� � G d� dt j � }t j | j � }t j |� }t j |� }| j t
|� t
|� � t j |� } ||� }t
|� j d� t
|� j d� z D ], }| j |j � t |� �� �. t j |� } ||� } | j t t
|� t
|� t
|� t
| � h� d� y )Nc � � e Zd Zy)�.MiscTest.test_generated_names.<locals>.Button2N)�__name__�
__module__�__qualname__� r r �Button2r* # s � �r r/ �.)�msg� )
r �Buttonr r! r"