<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I recently upgraded to Qt 3.2.1 and PyQt 3.8.1 (using qscintilla
1.2) and found that the editor in eric3 stopped responding to double and triple
clickingon Windows. A little investigation found this to be true of even a toy qscintilla
example. In the following code 'double click' never shows up on the
console, while 'mouse press' shows up twice for each double click.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I'm pretty sure I have all the right versions together
and putting some printfs into the Qt code showed that the double click window
messages were being handled. Additional printfs in the qscintilla code just
never shows the double click messages coming through and, as I said, the code
below is not working for me.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Any suggestions would be much appreciated.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>--</span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Michael Pyle</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>--Legato Systems, Inc.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> </span></font></p>
<pre><font size=2 face="Courier New"><span style='font-size:10.0pt'>import sys</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>from qt import QApplication, QEvent</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>from qtext import QextScintilla</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> </span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> </span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'># ***********************************************************************</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'># Editor</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'># ***********************************************************************</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> </span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>class Editor( QextScintilla ):</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> def __init__( self ):</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> QextScintilla.__init__( self )</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> </span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> def eventFilter( self, obj, event ):</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> if event.type() == QEvent.MouseButtonPress:</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> print 'mouse press'</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> elif event.type() == QEvent.MouseButtonDblClick:</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> print 'double click'</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> return QextScintilla.eventFilter( self, obj, event )</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> </span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> </span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'># ***********************************************************************</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'># main()</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'># ***********************************************************************</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> </span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>def main( args ):</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> app = QApplication( args )</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> win = Editor()</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> app.setMainWidget( win )</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> </span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> win.show()</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> app.exec_loop()</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> </span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> </span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>if __name__ == "__main__":</span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> main( sys.argv[1:] )</span></font></pre></div>
</body>
</html>