fix webview pipeline

This commit is contained in:
e20631
2023-05-09 10:33:00 +02:00
parent b6c47a903f
commit 10c9332940

View File

@ -14,7 +14,7 @@ from .plotdesc import PlotDescription
from .imgdesc import ImageDescription
from .rpc import RPCServerThread
from .shortcut import shortcut
from .webview import WebView
# from .webview import WebView # doesnt work for CSAXS version of pyqtWebEngine
class MainWindow(QMainWindow):
@ -33,7 +33,7 @@ class MainWindow(QMainWindow):
self.setWindowIcon(assets.icon())
url = f"http://{host}:{port}/"
self.webdoc = WebView(url, title=title)
# self.webdoc = WebView(url, title=title) # doesnt work for CSAXS version of pyqtWebEngine
self.lst = lst = DictList()
lst.setAlternatingRowColors(True)
@ -102,7 +102,8 @@ class MainWindow(QMainWindow):
def keyPressEvent(self, event):
if event.key() == Qt.Key_F1:
self.webdoc.show()
# self.webdoc.show() # doesnt work for CSAXS version of pyqtWebEngine
pass
# Remote API calls