class_docstr: Red outline to draw around lineedit when value is invalid.
  (for some reason, setting border from stylesheet does not work)
class_docstr_tok: ["Red","outline","to","draw","around","lineedit","when","value","is","invalid",".","(","for","some","reason",",","setting","border","from","stylesheet","does","not","work",")"]
code: def __init__(self, parent):
      QtWidgets.QWidget.__init__(self, parent)
      parent.installEventFilter(self)
      self.setAttribute(
          QtCore.Qt.WidgetAttribute.WA_TransparentForMouseEvents
      )
      self._resize()
      self.setVisible(False)
  
imports: import decimal
  import re
  from math import isinf, isnan
  from ..None import functions
  from ..Qt import QtCore, QtGui, QtWidgets
  from ..SignalProxy import SignalProxy
label_desc: Use image node_id 1 to create a new ErrorBox object from inherited base classes: QtWidgets with example: obj = ErrorBox(parent)