[PyKDE] Re: QEvent.User

Patrick Stinson patrickkidd at gmail.com
Thu Feb 9 22:04:58 GMT 2006


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.

Python 2.4.2 (#1, Dec 13 2005, 10:02:01)
[GCC 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4.QtCore import QEvent
>>> EVENT_CPU_EXPLOSION = QEvent.User + 1
>>> QEvent(EVENT_CPU_EXPLOSION)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: argument 1 of QEvent() has an invalid type
>>>

On 2/9/06, Patrick Stinson <patrickkidd at gmail.com> wrote:
>
> I show QEvent.User as <class 'PyQt4.QtCore.Type'>
>
> Shouldn't it be PyQt4.QtCore.QEvent.Type?
>
> --
> Patrick Kidd Stinson
> http://pkaudio.sourceforge.net/
> http://pksampler.sourceforge.net/




--
Patrick Kidd Stinson
http://pkaudio.sourceforge.net/
http://pksampler.sourceforge.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20060209/5931cb4e/attachment.html


More information about the PyQt mailing list