docstr: Moves all buttons to the correct position or else the buttons will
  be stacked on top of each other on the left.
docstr_tok: ["Moves","all","buttons","to","the","correct","position","or","else","the","buttons","will","be","stacked","on","top","of","each","other","on","the","left","."]
code: def resizeEvent(self, event):
      """
      Moves all buttons to the correct position or else the buttons will
      be stacked on top of each other on the left.
      """
      frameWidth = self.style().pixelMetric(
          QtWidgets.QStyle.PM_DefaultFrameWidth
      )
      right_margin = self.getContentsMargins()[2]
      bottom_margin = self.getContentsMargins()[3]
  
      for i, button in enumerate(self.buttons):
          buttonSize = button.sizeHint()
          button.move(
              self.rect().right()
              - frameWidth
              - buttonSize.width() * (i + 1)
              - right_margin,
              (self.rect().bottom() - buttonSize.height() + 1) // 2
              - bottom_margin,
          )
      super(ButtonLineEdit, self).resizeEvent(event)
  
imports: import re
  import time
  import pkg_resources
  from PyQt5 import QtCore, QtGui, QtWidgets
  from PyQt5.QtCore import Qt
label_desc: Use image node_id 2 for calling the ButtonLineEdit obj's underlying member method code with example usage: obj.resizeEvent(event) without return types