[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] QScintilla SCN_MODIFIED problems
From:       "Bryan A. Jones" <bjones () ece ! msstate ! edu>
Date:       2011-12-20 21:17:50
Message-ID: CAHhYbD8F2q7GvNQGvJBQy7W46s1Jv8XDZBJR+2_-iWBrimjP9A () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


All,

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
http://www.riverbankcomputing.com/pipermail/pyqt/2010-May/026726.html,
others have used it. However, this code:

self.plainTextEdit.SCN_MODIFIED.connect(self.on_plainTextEdit_modified)

(where self.plainTextEdit is a QScintilla instance) produces the messages:

Object::connect: No such signal QsciScintilla::SCN_MODIFIED(
int,int,char*,int,int,int,int,int,int,int)
Object::connect:  (sender name:   'plainTextEdit')
Traceback (most recent call last):
  File "C:\robotics_research\documentation\html_edit.py", line 452, in
<module>
    form = MyWidget('./practicum2Summer2011.c')
  File "C:\robotics_research\documentation\html_edit.py", line 77, in
__init__
    self.plainTextEdit.SCN_MODIFIED.connect(self.on_plainTextEdit_modified)
TypeError: connect() failed between
SCN_MODIFIED(int,int,char*,int,int,int,int,int,int,int)
and unislot()

However, a call to:

self.plainTextEdit.SCEN_CHANGE.connect(self.on_plainTextEdit_modified)

works as expected, so I'm not sure what's wrong. Any help would be
appreciated!

Bryan

-- 
Bryan A. Jones, Ph.D.
Associate Professor
Department of Electrical and Computer Engineering
231 Simrall / PO Box 9571
Mississippi State University
Mississippi state, MS 39762
http://www.ece.msstate.edu/~bjones
bjones AT ece DOT msstate DOT edu
voice 662-325-3149
fax 662-325-2298

Our Master, Jesus Christ, is on his way. He'll show up right on
time, his arrival guaranteed by the Blessed and Undisputed Ruler,
High King, High God.
- 1 Tim. 6:14b-15 (The Message)

[Attachment #5 (text/html)]

<span class="Apple-style-span" style>All,</span><div style><br></div><div \
style>I&#39;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:   \
&#39;plainTextEdit&#39;)</span><br style><span class="Apple-style-span" \
style>Traceback (most recent call last):</span><br style><span \
class="Apple-style-span" style>  File &quot;C:\robotics_research\</span><span \
class="Apple-style-span" style>documentation\html_edit.py&quot;, line 452, in \
&lt;module&gt;</span><br style>

<span class="Apple-style-span" style>    form = MyWidget(&#39;./</span><span \
class="Apple-style-span" style>practicum2Summer2011.c&#39;)</span><br style><span \
class="Apple-style-span" style>  File &quot;C:\robotics_research\</span><span \
class="Apple-style-span" style>documentation\html_edit.py&quot;, 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&#39;m not sure what&#39;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&#39;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>



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic