]> SALOME platform Git repositories - tools/yacsgen.git/commitdiff
Salome HOME
Stop using PyQt5.QtWebKitWidgets in examples.
authorOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Fri, 16 Jul 2021 13:57:06 +0000 (15:57 +0200)
committerOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Fri, 16 Jul 2021 13:57:06 +0000 (15:57 +0200)
Examples/pygui1/pycomposGUI.py

index 2ba8217da1a9f97eeb45082ceade81687068c5a6..db12c69ddbe964fc56bf3d8bd0393742f113ee18 100644 (file)
@@ -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: