<span class="Apple-style-span" style>All,</span><div style><br></div><div style>I'm using Python 2.7.2 with PyQt-4.8.5 on Windows 7 SP 1. Can anyone help me connect to the SCN_MODIFIED signal? From the archives at <a href="http://www.riverbankcomputing.com/pipermail/pyqt/2010-May/026726.html" target="_blank" style="color:rgb(17,85,204)">http://www.riverbankcomputing.com/pipermail/pyqt/2010-May/026726.html</a>, others have used it. However, this code:</div>
<br style><span class="Apple-style-span" style>self.plainTextEdit.SCN_</span><span class="Apple-style-span" style>MODIFIED.connect(self.on_</span><span class="Apple-style-span" style>plainTextEdit_modified)</span><div style>
<br></div><div style>(where self.plainTextEdit is a QScintilla instance) produces the messages:</div><br style><span class="Apple-style-span" style>Object::connect: No such signal QsciScintilla::SCN_MODIFIED(</span><span class="Apple-style-span" style>int,int,char*,int,int,int,int,</span><span class="Apple-style-span" style>int,int,int)</span><br style>
<span class="Apple-style-span" style>Object::connect: (sender name: 'plainTextEdit')</span><br style><span class="Apple-style-span" style>Traceback (most recent call last):</span><br style><span class="Apple-style-span" style> File "C:\robotics_research\</span><span class="Apple-style-span" style>documentation\html_edit.py", line 452, in <module></span><br style>
<span class="Apple-style-span" style> form = MyWidget('./</span><span class="Apple-style-span" style>practicum2Summer2011.c')</span><br style><span class="Apple-style-span" style> File "C:\robotics_research\</span><span class="Apple-style-span" style>documentation\html_edit.py", line 77, in __init__</span><br style>
<span class="Apple-style-span" style> self.plainTextEdit.SCN_</span><span class="Apple-style-span" style>MODIFIED.connect(self.on_</span><span class="Apple-style-span" style>plainTextEdit_modified)</span><br style><span class="Apple-style-span" style>TypeError: connect() failed between SCN_MODIFIED(int,int,char*,</span><span class="Apple-style-span" style>int,int,int,int,int,int,int) and unislot()</span><br style>
<br style><span class="Apple-style-span" style>However, a call to:</span><div style><br>self.plainTextEdit.SCEN_CHANGE.connect(self.on_plainTextEdit_modified)</div><div style><br></div><div style>works as expected, so I'm not sure what's wrong. Any help would be appreciated!</div>
<div style><br></div><div style>Bryan</div><div><br></div>-- <br>Bryan A. Jones, Ph.D.<br>Associate Professor<br>Department of Electrical and Computer Engineering<br>231 Simrall / PO Box 9571<br>Mississippi State University<br>
Mississippi state, MS 39762<br><a href="http://www.ece.msstate.edu/~bjones" target="_blank">http://www.ece.msstate.edu/~bjones</a><br>bjones AT ece DOT msstate DOT edu<br>voice 662-325-3149<br>fax 662-325-2298<br><br>Our Master, Jesus Christ, is on his way. He'll show up right on<br>
time, his arrival guaranteed by the Blessed and Undisputed Ruler,<br>High King, High God.<br>- 1 Tim. 6:14b-15 (The Message)<br><br>