Commit ec85f0f3 authored by Dan Pascu's avatar Dan Pascu

Fixed style test viewers after Qt5 migration

parent 6c06d187
#!/usr/bin/python
import os
from PyQt5.QtCore import QUrl
from PyQt5.QtWebKit import QWebSettings
from PyQt5.QtWebKitWidgets import QWebView
from PyQt5.QtWidgets import QApplication
app = QApplication([])
app = QApplication(['mockup'])
view = QWebView()
settings = view.settings()
settings.setAttribute(QWebSettings.DeveloperExtrasEnabled, True)
view.load(QUrl('mockup.html'))
view.load(QUrl.fromLocalFile(os.path.realpath('mockup.html')))
view.show()
app.exec_()
#!/usr/bin/python
import os
from PyQt5.QtCore import QUrl
from PyQt5.QtWebKit import QWebSettings
from PyQt5.QtWebKitWidgets import QWebView
from PyQt5.QtWidgets import QApplication
app = QApplication([])
app = QApplication(['mockup'])
view = QWebView()
settings = view.settings()
settings.setAttribute(QWebSettings.DeveloperExtrasEnabled, True)
view.load(QUrl('mockup.html'))
view.load(QUrl.fromLocalFile(os.path.realpath('mockup.html')))
view.show()
app.exec_()
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