Sindbad~EG File Manager
�
&Μgc@ � � � d dl Z d dl� d dlmZmZ d dlmZ d dlmZ dZ e j j e j j e
� e � Ze j j! e� reZ n'e j j! e � s ede �d�� �e fd �Zdd
�Z G d� d� Z G d
� d� Z G d� de� Z G d� d� Zd� Zedk( r d dlmZ eddd�� d dlmZ ee� yy# e$ r e ZY ��w xY w)� N)�*)�Frame� Scrollbar)�idleConf)�
zoomheight�Iconszcan't find icon directory (�)c �L � t � }ddl}|j t j j |j | � d� � }|j
� g }dx}}|D ]� }t j j t j j |� � d }t ||�� } |j | � t || dd�� }
|
j ||�� t ||� � }
|
j |dz |�� |dz }|d
k\ s��|dz }d}�� ||_
y)z'Utility to display the available icons.r Nz*.gif)�file�master� �raised)�image�bd�relief)�row�column)�text�
� )�Tk�glob�os�path�join�escape�sort�splitext�basename�
PhotoImage�append�Label�grid�images)�icondir�rootr �listr$ r r r �namer �labels �)/usr/local/lib/python3.12/idlelib/tree.py� listiconsr+ % s� � �
�4�D���9�9�R�W�W�\�\�$�+�+�g�"6��@�A�D��I�I�K�
�F���C�&����w�w������ 0� 0�� 6�7��:����T�2���
�
�e���d�%�A�h�?��
�
�
�s�6�
�*��d��&��
�
�
�s�1�u�V�
�,��!����R�<��a�%�C��F� � �D�K� c �� � t j | j dkD t j | j dk( i}|| j
rdnd}|�| j n|}|j t |d� y)a6 Handle scrollwheel event.
For wheel up, event.delta = 120*n on Windows, -1*n on darwin,
where n can be > 1 if one scrolls fast. Flicking the wheel
generates up to maybe 20 events with n up to 10 or more 1.
Macs use wheel down (delta = 1*n) to scroll up, so positive
delta means to scroll up on both systems.
X-11 sends Control-Button-4,5 events instead.
The widget parameter is needed so browser label bindings can pass
the underlying canvas.
This function depends on widget.yview to not be overridden by
a subclass.
r � ���� �units�break) � EventType�
MouseWheel�delta�ButtonPress�num�type�widget�yview�SCROLL)�eventr9 �up�liness r* �wheel_eventr? ; sd � �"