Displaying websites with WebGL in Python / PyQT -


i'd write app in python display website webgl content. that's script:

import sys pyqt4 import qtcore, qtgui, qtwebkit pyqt4.qtcore import qfileinfo  if __name__ == "__main__": app = qtgui.qapplication(sys.argv) webview = qtwebkit.qwebview()     webview.setgeometry(qtcore.qrect(30, 20, 591, 511)) webview.settings().setattribute(qtwebkit.qwebsettings.webglenabled, true) webview.settings().setattribute(qtwebkit.qwebsettings.acceleratedcompositingenabled, true) webview.load(qtcore.qurl('http://webglsamples.org/aquarium/aquarium.html')) webview.show() sys.exit(app.exec_()) 

it's "webglenabled" setting doesn't work. have ideas? maybe have example code working in pyqt or pyside?


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -