fix webview pipeline
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user