This commit is contained in:
Florian Bruhin 2017-03-15 22:15:52 +01:00
parent a70012b32e
commit d33e590ce5
2 changed files with 3 additions and 3 deletions

View File

@ -161,11 +161,11 @@ class WebEngineElement(webelem.AbstractWebElement):
# pylint doesn't know about Qt.MouseEventSynthesizedBySystem # pylint doesn't know about Qt.MouseEventSynthesizedBySystem
# because it was added in Qt 5.6, but we can be sure we use that with # because it was added in Qt 5.6, but we can be sure we use that with
# QtWebEngine. # QtWebEngine.
# pylint: disable=no-member # pylint: disable=no-member,useless-suppression
ev = QMouseEvent(QMouseEvent.MouseButtonPress, QPoint(0, 0), ev = QMouseEvent(QMouseEvent.MouseButtonPress, QPoint(0, 0),
QPoint(0, 0), QPoint(0, 0), Qt.NoButton, Qt.NoButton, QPoint(0, 0), QPoint(0, 0), Qt.NoButton, Qt.NoButton,
Qt.NoModifier, Qt.MouseEventSynthesizedBySystem) Qt.NoModifier, Qt.MouseEventSynthesizedBySystem)
# pylint: enable=no-member # pylint: enable=no-member,useless-suppression
self._tab.send_event(ev) self._tab.send_event(ev)
# This actually "clicks" the element by calling focus() on it in JS. # This actually "clicks" the element by calling focus() on it in JS.
self._js_call('focus') self._js_call('focus')

View File

@ -166,7 +166,7 @@ def init(args):
# Hide "No OpenGL_accelerate module loaded: ..." message # Hide "No OpenGL_accelerate module loaded: ..." message
logging.getLogger('OpenGL.acceleratesupport').propagate = False logging.getLogger('OpenGL.acceleratesupport').propagate = False
try: try:
from OpenGL import GL from OpenGL import GL # pylint: disable=unused-variable
except ImportError: except ImportError:
pass pass
else: else: