Also, QEvent() won't tak an integer as an argument, only a
PyQt4.QtCore.QEvent.Type object, and you are supposed to be able to use
a range between QEvent.User and QEvent.MaxUser.<br>
<br>
Python 2.4.2 (#1, Dec 13 2005, 10:02:01)<br>
[GCC 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)] on linux2<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> from PyQt4.QtCore import QEvent<br>
>>> EVENT_CPU_EXPLOSION = QEvent.User + 1<br>
>>> QEvent(EVENT_CPU_EXPLOSION)<br>
Traceback (most recent call last):<br>
File "<stdin>", line 1, in ?<br>
TypeError: argument 1 of QEvent() has an invalid type<br>
>>> <br><br><div><span class="gmail_quote">On 2/9/06, <b class="gmail_sendername">Patrick Stinson</b> <<a href="mailto:patrickkidd@gmail.com">patrickkidd@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I show QEvent.User as <class 'PyQt4.QtCore.Type'><br>
<br>
Shouldn't it be PyQt4.QtCore.QEvent.Type?<br clear="all"><span class="sg"><br>-- <br>Patrick Kidd Stinson<br><a href="http://pkaudio.sourceforge.net/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://pkaudio.sourceforge.net/</a><br><a href="http://pksampler.sourceforge.net/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://pksampler.sourceforge.net/
</a>
</span></blockquote></div><br><br clear="all"><br>-- <br>Patrick Kidd Stinson<br><a href="http://pkaudio.sourceforge.net/">http://pkaudio.sourceforge.net/</a><br><a href="http://pksampler.sourceforge.net/">http://pksampler.sourceforge.net/
</a>