I had tried that first. DeprecationWarning: an integer is required (got type PySide2.QtCore.Qt.AlignmentFlag). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python. twi.setTextAlignment(int(Qt.AlignRight | Qt.AlignVCenter))
Thanks, Ed On Fri, Mar 27, 2020 at 8:40 AM Cristián Maureira-Fredes < cristian.maureira-fre...@qt.io> wrote: > Hello, > > I really thought we fix this in the past, > since I have seen it...anyway > > On 3/27/20 12:30 PM, Ed Lipson wrote: > > > > What is the suggest syntax to future proof the code? > > I think > twi.setTextAlignment(int(Qt.AlignHCenter | Qt.AlignVCenter)) > > should work. > > Cheers > > -- > Dr. Cristian Maureira-Fredes > R&D Manager > > The Qt Company GmbH > Erich-Thilo-Str. 10 > D-12489 Berlin > > Geschäftsführer: Mika Pälsi, > Juha Varelius, Mika Harjuaho > Sitz der Gesellschaft: Berlin, > Registergericht: Amtsgericht > Charlottenburg, HRB 144331 B > _______________________________________________ > PySide mailing list > PySide@qt-project.org > https://lists.qt-project.org/listinfo/pyside >
_______________________________________________ PySide mailing list PySide@qt-project.org https://lists.qt-project.org/listinfo/pyside