[PyQt] Problem with a simple JavaScript cionnection

projetmbc projetmbc at club-internet.fr
Thu Apr 23 08:15:52 BST 2009

Hello, I give a very simple HTML page with a very little Javascript. I 
would klike to do two things :
    1) Read in a PyQt application the javascript variable nom.
    2) Define a slot wich will tell to the PyQt application that the 
function affiche() has been called.

Best regards and sorry for this question but JavaScript-PyQt is very 
hard I understand for me.

        <script type="text/javascript">
            nom = '';
            function affiche(){
                for(var i=0; i<document.images.length;i++){
            function nameImage(text){
                nom = text;

    <body onload="affiche()">
        <img src="im_1.jpg" name="images1" width="256" height="192" 
border="1" alt="im_1">
        <img src="im_2.jpg" name="images2" width="609" height="457" 
border="1" alt="im_2">
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090423/6b4da09c/Test.html

More information about the PyQt mailing list