
    ;e3                         	 d dl mZ d dlZd dlmZ d dlmZ  G d dej                  Z G d dej                  Z	e
d	k    r ej        d
           dS dS )    )windowN)requires)Tkc                       e Zd Zd ZdS )WindowListTestc                     t          j                    }|                     |j        i            |                     |j        g            d S N)r   
WindowListassertEqualdict	callbacks)selfwls     4/usr/lib/python3.11/idlelib/idle_test/test_window.py	test_initzWindowListTest.test_init   sF      "%%%r*****    N)__name__
__module____qualname__r    r   r   r   r   	   s#        + + + + +r   r   c                   @    e Zd Zed             Zed             Zd ZdS )ListedToplevelTestc                     t                      t          _        t          d           t	                      | _        | j                                         d S )Ngui)setr   registryr   r   rootwithdrawclss    r   
setUpClasszListedToplevelTest.setUpClass   s=    %%44r   c                     t          j                    t           _        | j                                         | j                                         | `d S r	   )r   r
   r   r   update_idletasksdestroyr   s    r   tearDownClassz ListedToplevelTest.tearDownClass   sE     +--!!### 	HHHr   c                     t          j        | j                  }|                     |t           j                   |                     |j        |           d S r	   )r   ListedToplevelr   assertInr   r   focused_widget)r   wins     r   r   zListedToplevelTest.test_init%   sI    #DI..c6?++++S11111r   N)r   r   r   classmethodr!   r%   r   r   r   r   r   r      sW          [   [2 2 2 2 2r   r   __main__   )	verbosity)idlelibr   unittesttest.supportr   tkinterr   TestCaser   r   r   mainr   r   r   <module>r5      s            ! ! ! ! ! !      + + + + +X& + + +2 2 2 2 2* 2 2 22 zHMA r   