[PyQt] Problem with event.modifiers()

Baz Walter bazwal at ftml.net
Wed Aug 27 19:57:44 BST 2008


Hello

When trying to do certain bitwise operations on the object returned by 
QKeyEvent.modifiers() I get the following error:

TypeError: unsupported operand type(s) for |: 'KeyboardModifiers' and 'int'

Looking at the base class for this object, I see that it is of type 
'sip.wrapper', when it should be type 'int'.

Regards
Baz Walter


More information about the PyQt mailing list