Logo Search packages:      
Sourcecode: laditools version File versions  Download package

def laditools::TreeViewTooltips::TreeViewTooltips::location (   self,
  x,
  y,
  w,
  h 
)
Given the x,y coordinates of the pointer and the width and
height (w,h) demensions of the tooltip window, return the x, y
coordinates of the tooltip window.

The default location is to center the window on the pointer
and 4 pixels below it.

Definition at line 269 of file TreeViewTooltips.py.

                                  :

        '''Given the x,y coordinates of the pointer and the width and
        height (w,h) demensions of the tooltip window, return the x, y
        coordinates of the tooltip window.

        The default location is to center the window on the pointer
        and 4 pixels below it.
        '''

        return x - w/2, y + 4


Generated by  Doxygen 1.6.0   Back to index