Created
October 5, 2011 16:49
-
-
Save tailhook/1264977 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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