Suppress non-relevant deprecation warning

This commit is contained in:
Ogi Moore 2021-05-28 11:34:13 -07:00
parent d519630d14
commit 1d55fde41a

View File

@ -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':