e SrSSK7 "SS5r"SS\5r"SS\5rS r\S :XaSS KJr \"S S 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 )*cB\rSrSrSrSrSrSrSrSr Sr S r S r g ) TooltipBase z abstract base class for tooltipscXlSUlg)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$UR5 gNhidetipr s r __del__TooltipBase.__del__s  rcUR(ag[UR5=UlnURS5 URR SSUR SS5 UR5 UR5 URR5 URR5 g![a Naf=f)zdisplay the tooltipNz!::tk::unsupported::MacWindowStylestylehelp noActivates) r Toplevelr wm_overrideredirecttkcall_wTclErrorposition_window showcontentsupdate_idletasksliftr tws r showtipTooltipBase.showtips >> &t'9'9:: q!  EEJJ:GRUU} .   '')     s)B?? C  C cUR5upURR5U-nURR5U-nURR SX44-5 g)z&(re)-set the tooltip's screen position+%d+%dN) get_positionr winfo_rootx winfo_rootyr wm_geometry)r xyroot_xroot_ys r r"TooltipBase.position_window/s^  "##//1A5##//1A5 ""8v.>#>?rc@SURR5S-4$)z(choose a screen position for the tooltipr)r winfo_heightrs r r,TooltipBase.get_position6s#4%%224q888rc[e)z$content display hook for sub-classes)NotImplementedErrorrs r r#TooltipBase.showcontentsAs "!rc|URnSUlU(aUR5 gg![a gf=fzhide the tooltipN)r destroyr!r&s r rTooltipBase.hidetipFs>^^      s . ;;rN) __name__ __module__ __qualname____firstlineno____doc__r rr(r"r,r#r__static_attributes__rr rr s)**@ 9" rrch^\rSrSrSrS U4SjjrU4SjrS SjrS SjrSr Sr U4S jr S r U=r $) OnHoverTooltipBaseRz?abstract base class for tooltips, with delayed on-hover displayc@>[TU]U5 X lSUlURR SUR 5UlURR SUR5Ul URR SUR5Ul g)aACreate 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