Marcell Mars a écrit :
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtWebKit import *
myWebKit = QWebView()
myWebKit.show()
myWebKit.setUrl(QUrl(http://www.google.com;))
myWebKit.page().mainFrame().evaluateJavaScript(open('jquery.js').read())
David Boddie a écrit :
The porting of the C++ Qt examples to Python has fallen behind since Qt 4.3
so there aren't any simple WebKit examples included with PyQt.
I'm not lucky... :-\
David Boddie a écrit :
The recent Monster Evolution experiments on Qt Labs include a Python version
of a
Marcell Mars a écrit :
the simplest example of loading jquery.js (geti it from
http://jqueryjs.googlecode.com/files/jquery-1.3.2.js and put it in the
same directory with the snippet below) after loading html and then
using jquery syntax to change the background color into red:
run it in python
I've forgot the gui file. Here is it.
Christophe.
:
Marcell Mars a écrit :
the simplest example of loading jquery.js (geti it from
http://jqueryjs.googlecode.com/files/jquery-1.3.2.js and put it in the
same directory with the snippet below) after loading html and then
using jquery syntax to
Hello,
I'm seeking for information about how to comunicate from PyQt with a
JavaScript program.
All kind of information is welcome.
Christophe.
___
PyQt mailing listPyQt@riverbankcomputing.com
projetmbc wrote:
I'm seeking for information about how to comunicate from PyQt with a
JavaScript program.
QWebFrame's evaluateJavaScript() might be a start.
--
Simon Edwards | KDE-NL, Guidance tools, Guarddog Firewall
si...@simonzone.com | http://www.simonzone.com/software/
Simon Edwards a écrit :
projetmbc wrote:
I'm seeking for information about how to comunicate from PyQt with a
JavaScript program.
QWebFrame's evaluateJavaScript() might be a start.
I also found a whitepaper of QT. I'll try to test that.
Thanks for showing me the direction.
Christophe.
Simon Edwards a écrit :
projetmbc wrote:
I'm seeking for information about how to comunicate from PyQt with a
JavaScript program.
QWebFrame's evaluateJavaScript() might be a start.
Indeed I'm looking for a simple example rather than an abstract one.
Christophe.
the simplest example of loading jquery.js (geti it from
http://jqueryjs.googlecode.com/files/jquery-1.3.2.js and put it in the
same directory with the snippet below) after loading html and then
using jquery syntax to change the background color into red:
run it in python interactive shell or
On Sun Apr 19 20:51:49 BST 2009, projetmbc wrote:
Simon Edwards a écrit :
projetmbc wrote:
I'm seeking for information about how to comunicate from PyQt with a
JavaScript program.
QWebFrame's evaluateJavaScript() might be a start.
Indeed I'm looking for a simple example rather than an
10 matches
Mail list logo