def METHOD_NAME(self, event):
    frame_width = self.style().pixelMetric(QStyle.PM_DefaultFrameWidth)
    button_size = self.button.sizeHint()
    self.button.move(
        self.rect().right() - frame_width - button_size.width(),
        (self.rect().bottom() - button_size.height() + 1) // 2,
    )
    super(ButtonLineEdit, self).METHOD_NAME(event)