[PyQt] keyboard-button symbols?

Florian Bruhin me at the-compiler.org
Tue Dec 15 18:00:25 GMT 2015


* c.buhtz at posteo.jp <c.buhtz at posteo.jp> [2015-12-15 18:52:38 +0100]:
> Is there a qt-way (plattform independent) to use symbols for
> keyboard-buttons?
> 
> Something like this
> 
> QKeySymbol.Ctrl + QKeySymbol.A

Without actually knowing what your goal is - there's Qt.Key_* and
Qt.*Modifier:

Qt.ControlModifier | Qt.Key_A

Florian

-- 
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20151215/10628044/attachment.sig>


More information about the PyQt mailing list