/opt/imh/python3.13/lib/python3.13/idlelib/__pycache__
Edit: /opt/imh/python3.13/lib/python3.13/idlelib/__pycache__/tooltip.cpython-313.pyc (9606B)
e S r SSK7 " S S5 r " S S\5 r " S S\5 rS r\S
:X a SSKJr \" SS
SS9 SSK J
r
\
" \5 gg)zTools for displaying tool-tips.
This includes:
* an abstract base-class for different kinds of tooltips
* a simple text-only Tooltip class
)*c B \ rS rSrSrS rS rS rS rS r S r
S rS
rg)TooltipBase
z abstract base class for tooltipsc Xl SU l g)zCreate a tooltip.
anchor_widget: the widget next to which the tooltip will be shown
Note that a widget will only be shown when showtip() is called.
N
anchor_widget tipwindow)selfr s 5/opt/imh/python3.13/lib/python3.13/idlelib/tooltip.py__init__TooltipBase.__init__
s + c $ U R 5 g Nhidetipr s r __del__TooltipBase.__del__ s r c U R ( a g[ U R 5 =U l nUR S5 UR R SSUR SS5 U R 5 U R 5 U R R 5 U R R 5 g! [ a Naf = f)zdisplay the tooltipN z!::tk::unsupported::MacWindowStylestylehelpnoActivates)r
Toplevelr wm_overrideredirecttkcall_wTclErrorposition_windowshowcontentsupdate_idletasksliftr tws r showtipTooltipBase.showtip s >>&t'9'9::
q!
EEJJ:GRUU}
.
'')
s )B? ?
CCc U R 5 u pU R R 5 U- nU R R 5 U- nU R R SX44- 5 g)z&(re)-set the tooltip's screen position+%d+%dN)get_positionr winfo_rootxwinfo_rootyr
wm_geometry)r xyroot_xroot_ys r r" TooltipBase.position_window/ s^ "##//1A5##//1A5""8v.>#>?r c @ SU R R 5 S- 4$ )z(choose a screen position for the tooltip r )r winfo_heightr s r r, TooltipBase.get_position6 s# 4%%224q888r c [ e)z$content display hook for sub-classes)NotImplementedErrorr s r r# TooltipBase.showcontentsA s
"!r c | U R nSU l U( a UR 5 gg! [ a gf = fzhide the tooltipN)r
destroyr! r&