Closed vi closed 12 years ago
Has shortcuts editor worked for you earlier? Which Qt and PyQt version do you use? Could you please execute with interactive python next code:
from PyQt4.QtCore import Qt; from PyQt4.QtGui import QKeySequence; mod = Qt.KeyboardModifiers(Qt.ControlModifier); mod |= 0x01000005; print QKeySequence(mod).toString()
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4.QtCore import Qt; from PyQt4.QtGui import QKeySequence; mod = Qt.KeyboardModifiers(Qt.ControlModifier); mod |= 0x01000005; print QKeySequence(mod).toString()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for |=: 'KeyboardModifiers' and 'int'
cat /var/lib/dpkg/status | grep '^Package: python-qt4$' -A 10 | grep Version
Version: 4.7.3-1+b1
Thanks
Fixed problem with old PyQt4
In latest (b83c92b82105a0bad13fd745a16be20535e9876f) Enki: