Ë ZñLï&/ãó¢—dZddl­Gd„d«ZGd„de«ZGd„de«Zd „Zed k(r dd lmZed d d¬«ddl m Z e e«yy)zŽTools for displaying tool-tips. This includes: * an abstract base-class for different kinds of tooltips * a simple text-only Tooltip class é)Ú*có:—eZdZdZd„Zd„Zd„Zd„Zd„Zd„Z d„Z y ) Ú TooltipBasez abstract base class for tooltipscó —||_d|_y)z®Create 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)Úselfrs ú&/usr/lib/python3.12/idlelib/tooltip.pyÚ__init__zTooltipBase.__init__ s€ð+ˆÔ؈�ócó$—|j«y©N©Úhidetip©r s r Ú__del__zTooltipBase.__del__s €Ø � ‰ �r có’—|jryt|j«x|_}|jd« |jj dd|j dd«|j«|j«|jj«|jj«y#t$rYŒ`wxYw)zdisplay the tooltipNéz!::tk::unsupported::MacWindowStyleÚstyleÚhelpÚ noActivates) rÚToplevelrÚwm_overrideredirectÚtkÚcallÚ_wÚTclErrorÚposition_windowÚ showcontentsÚupdate_idletasksÚlift©r Útws r ÚshowtipzTooltipBase.showtips¦€à �>Š>Ø Ü& t×'9Ñ'9Ó:Ð:ˆŒ˜à ×јqÔ!ð ð �E‰E�J‰JÐ:¸GÀRÇUÁUؘ}ô .ð ×ÑÔØ ×ÑÔØ �‰×'Ñ'Ô)Ø �‰×ÑÕøô ò Ù ð ús¼)B:Â: CÃCcóÞ—|j«\}}|jj«|z}|jj«|z}|jj d||fz«y)z&(re)-set the tooltip's screen positionú+%d+%dN)Ú get_positionrÚ winfo_rootxÚ winfo_rootyrÚ wm_geometry)r ÚxÚyÚroot_xÚroot_ys r rzTooltipBase.position_window/sb€à× Ñ Ó"‰ˆˆ1Ø×#Ñ#×/Ñ/Ó1°AÑ5ˆØ×#Ñ#×/Ñ/Ó1°AÑ5ˆØ �‰×"Ñ" 8¨v°vÐ.>Ñ#>Õ?r có@—d|jj«dzfS)z(choose a screen position for the tooltipér)rÚ winfo_heightrs r r'zTooltipBase.get_position6s#€ð�4×%Ñ%×2Ñ2Ó4°qÑ8Ð8Ð8r có—t‚)z$content display hook for sub-classes)ÚNotImplementedErrorrs r rzTooltipBase.showcontentsAs €ô"Ð!r cóp—|j}d|_|r |j«yy#t$rYywxYw©zhide the tooltipN)rÚdestroyrr"s r rzTooltipBase.hidetipFs>€ð�^‰^ˆØˆŒÙ ð Ø— ‘ • ð øôò Ùð ús —)© 5´5N) Ú__name__Ú __module__Ú __qualname__Ú__doc__r rr$rr'rr©r r rr s)„Ù*òòòò*@ò 9ò"ó r rcóT‡—eZdZdZd ˆfd„ Zˆfd„Zd d„Zd d„Zd„Zd„Z ˆfd„Z ˆxZ S) ÚOnHoverTooltipBasez?abstract base class for tooltips, with delayed on-hover displaycóB•—t‰|�|«||_d|_|jj d|j «|_|jj d|j«|_ |jj d|j«|_ y)aqCreate a tooltip with a mouse hover delay. anchor_widget: the widget next to which the tooltip will be shown hover_delay: time to delay before showing the tooltip, in milliseconds Note that a widget will only be shown when showtip() is called, e.g. after hovering over the anchor widget with the mouse for enough time. Núúú