eric7/WebBrowser/Tools/WebBrowserTools.py

branch
eric7
changeset 8553
10d31e5ce9e5
parent 8318
962bce857696
child 8556
766e1566cb74
equal deleted inserted replaced
8552:f9cf1ff5126a 8553:10d31e5ce9e5
232 agent string. 232 agent string.
233 233
234 @return tuple containing the Chrome version and the QtWebEngine version 234 @return tuple containing the Chrome version and the QtWebEngine version
235 @rtype tuple of str 235 @rtype tuple of str
236 """ 236 """
237 from PyQt6.QtWebEngineWidgets import QWebEngineProfile 237 from PyQt6.QtWebEngineCore import QWebEngineProfile
238 238
239 useragent = QWebEngineProfile.defaultProfile().httpUserAgent() 239 useragent = QWebEngineProfile.defaultProfile().httpUserAgent()
240 match = re.search(r"""Chrome/([\d.]+)""", useragent) 240 match = re.search(r"""Chrome/([\d.]+)""", useragent)
241 chromeVersion = ( 241 chromeVersion = (
242 match.group(1) 242 match.group(1)

eric ide

mercurial