def _set_user_stylesheet():
 stylesheet = shared.get_user_stylesheet().encode('utf-8')
 url = urlutils.data_url('text/css;charset=utf-8', stylesheet)
 QWebSettings.globalSettings().setUserStyleSheetUrl(url)

def _set_user_stylesheet ( ) : stylesheet = shared . get_user_stylesheet ( ) . encode ( 'utf-8' ) url = urlutils . data_url ( 'text/css;charset=utf-8' , stylesheet ) QWebSettings . globalSettings ( ) . setUserStyleSheetUrl ( url )
set the generated user-stylesheet .