From anonymous, 1 Month ago, written in Plain Text.
Embed
  1. from PyQt5.QtWebEngineCore import QWebEngineUrlScheme
  2. scheme = QWebEngineUrlScheme(b'qute')
  3. scheme.setFlags(QWebEngineUrlScheme.LocalScheme |
  4.                 QWebEngineUrlScheme.LocalAccessAllowed)
  5. QWebEngineUrlScheme.registerScheme(scheme)
  6.  
  7. config.load_autoconfig()