Suppress non-relevant deprecation warning
This commit is contained in:
parent
d519630d14
commit
1d55fde41a
@ -1,5 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from ..Qt import QtGui, QtCore
|
||||
import warnings
|
||||
|
||||
__all__ = ['VerticalLabel']
|
||||
#class VerticalLabel(QtGui.QLabel):
|
||||
@ -46,7 +47,8 @@ class VerticalLabel(QtGui.QLabel):
|
||||
rgn = self.contentsRect()
|
||||
align = self.alignment()
|
||||
#align = QtCore.Qt.AlignTop|QtCore.Qt.AlignHCenter
|
||||
|
||||
with warnings.catch_warnings():
|
||||
warnings.simplefilter("ignore")
|
||||
self.hint = p.drawText(rgn, align, self.text())
|
||||
p.end()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user