[PyQt] Next PyQt, SIP, QScintilla Releases

Phil Thompson phil at riverbankcomputing.com
Fri Nov 7 22:48:03 GMT 2008


On Fri, 07 Nov 2008 19:29:14 +0000, Baz Walter <bazwal at ftml.net> wrote:
> Phil Thompson wrote:
>> There will be new releases of PyQt, SIP and QScintilla in the next few
>> days
>> based on current snapshots.
>> 
>> Let me know if there is anything you are expecting that doesn't seem to
>> be
>> there.
> 
> A while ago i reported a problem with code like this:
> 
> def keyPressEvent(self, event):
>      print event.modifiers() | event.key()
> 
> which gives the following error:
> 
> TypeError: unsupported operand type(s) for |: 'KeyboardModifiers' and
'int'
> 
> This is using python 2.6, qt 4.4.3, sip 4.7.8-snapshot-20081026, pyqt 
> 4.4.4-snapshot-20081026.
> 
> Has this been fixed in the latest release?

No, but there has been some relaxing of the enforcement of types between
enums and ints. I'll look at this for a future version.

Phil


More information about the PyQt mailing list