Coverage for modules/org/openteacher/interfaces/qt/webEngines/qtwebkit/qtwebkit : 90%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
|
#! /usr/bin/env python # -*- coding: utf-8 -*-
# Copyright 2017, Marten de Vries # # This file is part of OpenTeacher. # # OpenTeacher is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # OpenTeacher is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with OpenTeacher. If not, see <http://www.gnu.org/licenses/>.
self.widget.forward()
self.widget.back()
self.widget.reload()
self._mm.mods(type='event'), )
""""Returns a View object, which has the following fields: - widget: a Qt widget that displays a web page. - onFinished: an Event; handlers get a single boolean value as argument that tells you if a previous request succeeded. - request(url, headers); headers is optional, but if supplied should be a dict. Use this to set a User Agent, also. - setHtml(html); for if you don't want to specify a web address - enablePlugins(); does what it says
"""
global QtWebKit, QtWebKitWidgets, QtCore, QtNetwork except ImportError: # remain inactive return
|