From: Ovidiu Mircescu Date: Fri, 16 Jul 2021 13:57:06 +0000 (+0200) Subject: Stop using PyQt5.QtWebKitWidgets in examples. X-Git-Tag: V9_8_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=829bec7c6ddba62d6c580bcebbbb70e16362dd9a;p=tools%2Fyacsgen.git Stop using PyQt5.QtWebKitWidgets in examples. --- 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: