''

def _locate_tip_box(self):

    dockwidgets = self.dockwidgets
    geo = self.parent.frameGeometry()
    (x, y, width, height) = (geo.x(), geo.y(), geo.width(), geo.height())
    self.width_main = width
    self.height_main = height
    self.x_main = x
    self.y_main = y
    delta = 20
    if (dockwidgets is not None):
        if (dockwidgets[0] is not None):
            geo = dockwidgets[0].geometry()
            (x, y, width, height) = (geo.x(), geo.y(), geo.width(), geo.height())
            point = dockwidgets[0].mapToGlobal(QPoint(0, 0))
            (x_glob, y_glob) = (point.x(), point.y())
            y_fac = ((height / self.height_main) * 100)
            if (y_fac > 60):
                if (x < self.tips.width()):
                    x = ((x_glob + width) + delta)
                    y = ((y_glob + (height / 2)) - (self.tips.height() / 2))
                else:
                    x = ((x_glob - self.tips.width()) - delta)
                    y = ((y_glob + (height / 2)) - (self.tips.height() / 2))
            elif (y < self.tips.height()):
                x = ((x_glob + (width / 2)) - (self.tips.width() / 2))
                y = ((y_glob + height) + delta)
            else:
                x = ((x_glob + (width / 2)) - (self.tips.width() / 2))
                y = ((y_glob - delta) - self.tips.height())
    else:
        x = ((self.x_main + (self.width_main / 2)) - (self.tips.width() / 2))
        y = ((self.y_main + (self.height_main / 2)) - (self.tips.height() / 2))
    self.tips.set_pos(x, y)
