python (3.12.0)
̑e? 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)
zoomheightIconszcan'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)filemaster raised)imagebdrelief)rowcolumn)text
)Tkglobospathjoinescapesortsplitextbasename
PhotoImageappendLabelgridimages)icondirrootr listr$ r r r namer labels @/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/idlelib/tree.py listiconsr+ % s
4D99RWW\\$++g"6@ADIIK
FC& ww 0 0 67:T2
ed%Ah?
s6
*d&
s1uV
,!R<a%CF DK 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 unitsbreak) EventType
MouseWheeldeltaButtonPressnumtypewidgetyviewSCROLL)eventr9 upliness r* wheel_eventr? ; sd "