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
_______________________________________________
PySide mailing list
PySide@qt-project.org
https://lists.qt-project.org/listinfo/pyside

Reply via email to