관리-도구
편집 파일: test_tree.cpython-37.opt-2.pyc
B YI~d� � @ sx d dl mZ d dlZd dlmZ ed� d dlmZmZmZ G dd� dej �Z G dd � d ej �Zed krtej dd� dS ) � )�treeN)�requiresZgui)�Tk� EventType�SCROLLc @ s, e Zd Zedd� �Zedd� �Zdd� ZdS )�TreeTestc C s t � | _| j�� d S )N)r �rootZwithdraw)�cls� r �@/opt/alt/python37/lib64/python3.7/idlelib/idle_test/test_tree.py� setUpClass s zTreeTest.setUpClassc C s | j �� | ` d S )N)r Zdestroy)r r r r � tearDownClass s zTreeTest.tearDownClassc C sN t j| jdddd�}|jjdddd� t �t j�}t �|jd |�}|� � d S )NZwhiter � )�bgZhighlightthicknessZ takefocusZboth�left)�expand�fillZside) r ZScrolledCanvasr �frame�packZFileTreeItemZICONDIRZTreeNodeZcanvasr )�selfZsc�itemZnoder r r � test_init s zTreeTest.test_initN)�__name__� __module__�__qualname__�classmethodr r r r r r r r s r c @ s e Zd Zdd� ZdS )�TestScrollEventc s� G � fdd�d�}G dd� d�}t jdddft jddd ft jdd dft jdd d ff}|� }xF|D ]>\}}}}||_||_||_t�||t|d��} � � | d� q`W d S ) Nc s e Zd Zdd� Z� fdd�ZdS )z1TestScrollEvent.test_wheel_event.<locals>._Widgetc W s || _ d S )N)�expected)�widgetr r r r �__init__% s z:TestScrollEvent.test_wheel_event.<locals>._Widget.__init__c s � � | j|� d S )N)ZassertTupleEqualr )r �args)r r r �yview'