[PySide] Seeing Deprecation Warning messages
Ed Lipson
edlipsongm at gmail.com
Fri Mar 27 12:30:46 CET 2020
I'm seeing these messages in the console when I run (under FBS, but not
sure if that matters):
DeprecationWarning: an integer is required (got type
PySide2.QtWidgets.QMessageBox.StandardButton). Implicit conversion to
integers using __int__ is deprecated, and may be removed in a future
version of Python.
QMessageBox.Yes | QMessageBox.No),
DeprecationWarning: an integer is required (got type
PySide2.QtCore.Qt.Alignment). Implicit conversion to integers using
__int__ is deprecated, and may be removed in a future version of Python.
twi.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
What is the suggest syntax to future proof the code? The code, using the
pattern from the web site doc, currently works with nothing but the warning
appearing.
Versions:
Python 3.8.2
PyQt5Designer 5.14.1
PySide2 5.14.1
shiboken2 5.14.1
fbs 0.8.4
Thanks,
Ed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20200327/0f42d77b/attachment.html>
More information about the PySide
mailing list