5.13: Missing QWebEnginePage::Notifications enum member

Florian Bruhin <[email protected]>
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <[email protected]>
Hi,

it looks like PyQt 5.13 is missing the QWebEnginePage::Notifications enum
member added in Qt 5.13:

    >>> from PyQt5.QtCore import QT_VERSION_STR, PYQT_VERSION_STR
    >>> from PyQt5.QtWebEngineWidgets import QWebEnginePage

    >>> QT_VERSION_STR
    '5.13.0'
    >>> PYQT_VERSION_STR
    '5.13.0'

    >>> QWebEnginePage.Notifications
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    AttributeError: type object 'QWebEnginePage' has no attribute 'Notifications'

    >>> QWebEnginePage.Feature.Notifications
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    AttributeError: sip.enumtype object 'Feature' has no member 'Notifications'

See:
https://doc.qt.io/qt-5/qwebenginepage.html#Feature-enum
https://codereview.qt-project.org/c/qt/qtwebengine/+/205716/16/src/webenginewidgets/api/qwebenginepage.h

(I'm guessing it's missing because it's not new - it was reserved for a while,
with 5.13 it's documented and actually used)

As a workaround, the integer value 0 can be used.

Florian

-- 
https://www.qutebrowser.org | [email protected] (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
         I love long mails! | https://email.is-not-s.ms/

_______________________________________________
PyQt mailing list    [email protected]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE4E5WAAJAG47w528KkW6wyP1VoHIFAl0feW0ACgkQkW6wyP1V
oHIq6g//WeoAdsUEmdkjUu465I6TdZGG6oo6OsQ/Zcs4BCahQNebMydPf5uLVanv
jH4xyvrxXHS5f4kPFD9ca/0mQDf/YLQyxREfOLeJBgBic4lwody+e3p7KCKvMPZV
VefAcv0n3Rho7Zt+FntUznMLDBbsOMFsODaNm1k4jeZRuH9tUQm+U1WIadjbulDW
B7k6rKhOcuMbCNbiovV7tCvlt4728A3Et8nBzPBUlfzLt49EcrTLPecXV6PXLxnu
mgDMJ8uHbdX3lreyH1o4yJaCSaqyoaBEWuaQyV6s1JLNBqSIScBmk2q3gItbI72K
lfyhZ8tPVOyPBK7+RnlKYkr+RVdfAC66w9QWzb5qVUFN2+U+IDhi/uJMeBsSmPjm
2yfcqBocesJqEhF+efN8oc5LXbfs693hv6KU+9yNDE2hSqNY7Uq3wFMH8WqZGKlI
4C/CflxOgDNdWombe0tJ4n/UXNyO+ifbMsEM1aRcJlbe8OUy4cTVenZDQ9osGAR5
0Is5HpY6Be0ZFYKPolPclf/Gi5PUj9XcHVPM/BKNSlriCeUQcAEFpeZeZqV7s8rT
biiLbjsZGUivJcXAIwVpl/Vt6LnQZKMGE4EjjYaEdJD1FT9knc2fi8SwwMcjkp2G
a/S1lK171WnTB+rvhM4IHSiYtBUTR7E7q35idzyL21xCRkAKs0s=
=+NKn
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.