Skip to content

Commit

Permalink
scripts: Preemptively import QtWebEngineWidgets
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed Aug 30, 2019
1 parent ca0b06e commit cc04fdc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/create_widget_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
from AnyQt.QtGui import QImage, QPainter
from AnyQt.QtWidgets import QGraphicsScene, QApplication, QWidget, QGraphicsView, QHBoxLayout
from AnyQt.QtCore import QRectF, Qt, QTimer
# QWebEngineWidgets must be imported before QCoreApplication is created.
# It will fail with an import error if imported (first time) after.
import AnyQt.QtWebEngineWidgets # pylint: disable=unused-import

from orangecanvas.canvas.items import NodeItem
from orangecanvas.help import HelpManager
Expand Down

0 comments on commit cc04fdc

Please sign in to comment.