Version: 8.3.0
gui.GraphViewer.DynamicTip Class Reference
Inheritance diagram for gui.GraphViewer.DynamicTip:
Collaboration diagram for gui.GraphViewer.DynamicTip:

Public Member Functions

def __init__
 
def maybeTip
 

Detailed Description

Definition at line 25 of file GraphViewer.py.

Constructor & Destructor Documentation

def gui.GraphViewer.DynamicTip.__init__ (   self,
  parent 
)

Definition at line 26 of file GraphViewer.py.

26 
27  def __init__( self, parent ):
28  QToolTip.__init__( self, parent )

Member Function Documentation

def gui.GraphViewer.DynamicTip.maybeTip (   self,
  pos 
)

Definition at line 29 of file GraphViewer.py.

References gui.GraphViewer.canvas.

29 
30  def maybeTip( self, pos ):
31  pos2=self.parentWidget().viewportToContents(pos)
32  point = self.parentWidget().inverseWorldMatrix().map(pos2)
33  ilist = self.parentWidget().canvas().collisions(point) #QCanvasItemList ilist
34  for each_item in ilist:
35  if hasattr(each_item,"tooltip"):
36  each_item.tooltip(self,pos)
37  return
38  elif hasattr(each_item,"getObj"):
39  each_item.getObj().tooltip(self,pos)
40  return

The documentation for this class was generated from the following file: