From 1d55fde41a28b63b8a9c6f3136078b61391e85f8 Mon Sep 17 00:00:00 2001 From: Ogi Moore Date: Fri, 28 May 2021 11:34:13 -0700 Subject: [PATCH] Suppress non-relevant deprecation warning --- pyqtgraph/widgets/VerticalLabel.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyqtgraph/widgets/VerticalLabel.py b/pyqtgraph/widgets/VerticalLabel.py index c8cc80bd..db6b62ab 100644 --- a/pyqtgraph/widgets/VerticalLabel.py +++ b/pyqtgraph/widgets/VerticalLabel.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- from ..Qt import QtGui, QtCore +import warnings __all__ = ['VerticalLabel'] #class VerticalLabel(QtGui.QLabel): @@ -46,8 +47,9 @@ class VerticalLabel(QtGui.QLabel): rgn = self.contentsRect() align = self.alignment() #align = QtCore.Qt.AlignTop|QtCore.Qt.AlignHCenter - - self.hint = p.drawText(rgn, align, self.text()) + with warnings.catch_warnings(): + warnings.simplefilter("ignore") + self.hint = p.drawText(rgn, align, self.text()) p.end() if self.orientation == 'vertical':