From 829bec7c6ddba62d6c580bcebbbb70e16362dd9a Mon Sep 17 00:00:00 2001 From: Ovidiu Mircescu Date: Fri, 16 Jul 2021 15:57:06 +0200 Subject: [PATCH] Stop using PyQt5.QtWebKitWidgets in examples. --- Examples/pygui1/pycomposGUI.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Examples/pygui1/pycomposGUI.py b/Examples/pygui1/pycomposGUI.py index 2ba8217..db12c69 100644 --- a/Examples/pygui1/pycomposGUI.py +++ b/Examples/pygui1/pycomposGUI.py @@ -22,7 +22,6 @@ import os from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5 import QtCore, uic, QtWidgets -from PyQt5.QtWebKitWidgets import QWebView import salome import pycompos_ORB @@ -128,10 +127,8 @@ def OnGUIEvent( commandID ): print("pycompos.OnGUIEvent(): command = %d" % commandID) if commandID==941: widget=QMainWindow(sgPyQt.getDesktop()) - web = QWebView(widget) - page=os.path.join(os.environ["pycompos_ROOT_DIR"],"share","doc","salome","gui","pycompos","index.html") - web.load(QUrl(page)) - widget.setCentralWidget(web) + mywidget = QLabel("Hello world!", widget) + widget.setCentralWidget(mywidget) widget.show() elif commandID==942: -- 2.39.2