Skip to content

Instantly share code, notes, and snippets.

@tailhook
Created October 5, 2011 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tailhook/1264977 to your computer and use it in GitHub Desktop.
Save tailhook/1264977 to your computer and use it in GitHub Desktop.
import sys
from PyQt4 import QtCore, QtGui, QtWebKit
def main():
app = QtGui.QApplication(sys.argv)
win = QtGui.QWidget()
vert = QtGui.QVBoxLayout(win)
tab = QtGui.QTabWidget(win)
view = QtWebKit.QWebView(win)
settings = view.settings() # self.webView is the QWebView
settings.setAttribute(QtWebKit.QWebSettings.PluginsEnabled,True)
vert.addWidget(view)
view.load(QtCore.QUrl("http://h1.ctest.insollo:8000/"))
view.show()
win.setWindowTitle("Maps Editor")
win.show()
sys.exit(app.exec())
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment