From dfde08bc55267a089e4fd1ad536aad80d8a40d9d Mon Sep 17 00:00:00 2001 From: Gra Date: Thu, 23 Apr 2009 10:52:59 +0200 Subject: [PATCH] Turned comments to docstrings. --- tooltip.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tooltip.py b/tooltip.py index a8497d0..c91d014 100644 --- a/tooltip.py +++ b/tooltip.py @@ -105,17 +105,23 @@ class ToolTip: KeyError = 'KeyError: Unknown option: "%s"' %key raise KeyError - ##----these methods handle the callbacks on "", "" and ""---------------## - ##----events on the parent widget; override them if you want to change the widget's behavior--## - def enter(self, event=None): + """Handles the callback on events on the parent widget. + + Override them if you want to change the widget's behavior.""" self._schedule() def leave(self, event=None): + """Handles the callback on events on the parent widget. + + Override them if you want to change the widget's behavior.""" self._unschedule() self._hide() def motion(self, event=None): + """Handles the callback on events on the parent widget. + + Override them if you want to change the widget's behavior.""" if self._tipwindow and self._follow_mouse: x, y = self.coords() self._tipwindow.wm_geometry("+%d+%d" % (x, y)) -- 2.45.1