Skip to content

Instantly share code, notes, and snippets.

@hideaki-t
Created August 2, 2013 16:26
Show Gist options
  • Save hideaki-t/6141269 to your computer and use it in GitHub Desktop.
Save hideaki-t/6141269 to your computer and use it in GitHub Desktop.
import sys
try:
from PySide import QtCore
from PySide import QtGui
from PySide import QtWebKit
except:
from PyQt4 import QtCore
from PyQt4 import QtGui
from PyQt4 import QtWebKit
app = QtGui.QApplication([])
w = QtWebKit.QWebView()
w.load(QtCore.QUrl("http://readium.github.io/readium-viewer-demo1/"))
w.show()
sys.exit(app.exec_())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment