def mask_pen(self, pen): self._pen_stash['mask_pen_on'] = pg.mkPen(pen) if self.error is not None: self.error.setPen(pen=pg.mkPen(pen))