Commit bc8c1409 authored by Bruno Guillaume's avatar Bruno Guillaume


parent 0ea19e26
......@@ -6,8 +6,13 @@ import sys
import os
from PyQt5.QtWidgets import (qApp, QWidget, QPushButton, QSlider, QSplitter, QAbstractItemView, QLabel,
QHBoxLayout, QVBoxLayout, QApplication, QTextEdit, QScrollArea, QTreeView, QAction, QMainWindow, QFileDialog,QMessageBox)
from PyQt5.QtWebKitWidgets import QWebView , QWebPage
from PyQt5.QtWebKit import QWebSettings
from PyQt5.Qt import PYQT_VERSION_STR
if PYQT_VERSION_STR=='5.5.1': from PyQt5 import QtWebKitWidgets
else: from PyQt5 import QtWebEngineWidgets
from PyQt5.QtCore import QUrl, Qt, QFileSystemWatcher
from PyQt5.QtGui import *
......@@ -116,8 +121,14 @@ class Dep2pict(QMainWindow):
right_hbox.setContentsMargins(0,0,0,0) #(left, top, right, bottom)
#self.web_view = QWebView()
#self.web_view = QtWebEngineWidgets.QtWebEngineView(self)
if PYQT_VERSION_STR=='5.5.1':
self.web_view = QtWebKitWidgets.QWebView(self)
self.web_view = QtWebEngineWidgets.QWebEngineView(self)
self.web_view = QWebView()
self.web_view.loadFinished.connect(self.post_draw) #keep scroll position
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment