Skip to content

Instantly share code, notes, and snippets.

@hhuuggoo
Created March 12, 2014 03:48
Show Gist options
  • Save hhuuggoo/9500507 to your computer and use it in GitHub Desktop.
Save hhuuggoo/9500507 to your computer and use it in GitHub Desktop.
import sys
#url = "http://localhost:5006/bokeh/doc/line/show"
url = "http://10.10.0.121:5006/bokeh/doc/line/show"
def start():
app_created = False
app = QtCore.QCoreApplication.instance()
if app is None:
app = QtGui.QApplication(sys.argv)
app_created = True
return app
def openpage(app, url):
qurl = QtCore.QUrl(str(url))
web = QtWebKit.QWebView()
web.load(qurl)
web.show()
return web
app = start()
web = openpage(app, url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment