Re: Re: [PyQt] Link between a QWebViev and a JavaScript program

2009-04-24 Thread projetmbc
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())

Re: [PyQt] Link between a QWebViev and a JavaScript program

2009-04-20 Thread projetmbc
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

Re: [PyQt] Link between a QWebViev and a JavaScript program

2009-04-20 Thread projetmbc
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

Re: [PyQt] Link between a QWebViev and a JavaScript program

2009-04-20 Thread projetmbc
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

[PyQt] Link between a QWebViev and a JavaScript program

2009-04-19 Thread projetmbc
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

Re: [PyQt] Link between a QWebViev and a JavaScript program

2009-04-19 Thread Simon Edwards
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/

Re: [PyQt] Link between a QWebViev and a JavaScript program

2009-04-19 Thread projetmbc
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.

Re: [PyQt] Link between a QWebViev and a JavaScript program

2009-04-19 Thread projetmbc
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.

Re: [PyQt] Link between a QWebViev and a JavaScript program

2009-04-19 Thread Marcell Mars
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

Re: [PyQt] Link between a QWebViev and a JavaScript program

2009-04-19 Thread David Boddie
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