관리-도구
편집 파일: tree.cpython-37.pyc
B � f�? � @ s0 d dl Z d dlT d dlmZmZ d dlmZ d dlmZ dZ ye j �e j �e �e �ZW n ek rn e ZY nX e j �e�r�eZ ne j �e �s�ede f ��e fdd �Zdd d�ZG dd � d �ZG dd� d�ZG dd� de�ZG dd� d�Zdd� Zedk�r,d dlmZ edddd� d dlmZ ee� dS )� N)�*)�Frame� Scrollbar)�idleConf)� zoomheightZIconszcan't find icon directory (%r)c C s� t � }ddl}|�tj�| d��}|�� g }d }}x�|D ]�}tj�tj�|��d }t||d�} |� | � t || ddd�} | j||d� t ||d �} | j|d |d� |d }|d kr<|d }d}q<W ||_dS )z'Utility to display the available icons.r Nz*.gif)�file�master� Zraised)�image�bdZrelief)�row�column)�text� � ) ZTk�glob�os�path�join�sort�splitext�basename� PhotoImage�append�Label�grid�images)Zicondir�rootr �listr r r r �namer �label� r! �1/opt/alt/python37/lib64/python3.7/idlelib/tree.py� listicons% s&