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 paintEvent(self, ev):
      p = QtGui.QPainter(self)
      p.setPen(fn.mkPen(color="r", width=2))
      p.drawRect(self.rect())
      p.end()
  
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 4 for calling the ErrorBox obj's underlying member method code with example usage: obj.paintEvent(ev) without return types