def METHOD_NAME(self):
    widget = self.parent.module_widgets[0].attribute_widgets[
        self.widget_name]
    x = widget.pos().x() + widget.width()/2 + self.x_offset - \
        self.item.width()/2 + self.item.x()
    y = self.y*self.parent.view.height() - self.item.height()/2 + \
        self.item.y()
    self.move(x, y)