[PyKDE] hardware_keycode

Laur Ivan laur.ivan at corvil.com
Fri Dec 19 11:12:01 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 17 December 2003 18:03, Jim Bublitz wrote:
> On Wednesday December 17 2003 09:09, Laur Ivan wrote:
> >  Is there any way to get the hardware_keycode as provided by
> > Xevent in pyqt/pykde? I've been looking on google for the past
> > 3 days to no avail...
>
> Probably not, unless PyQt or PyKDE provide a method to return it.
> XEvent and other X classes don't have Python bindings.

PyKDE has something called "KKeyNative" which is supposed to get the 
hardware_keycode as well, but i have quite a few problems on compiling 3.8 
(pykde) on Fedora. PyQt does not bind the x11event methods from QApplication 
(3.8 again).

>
> The easiest solution might be to write your own Python extension
> in C/C++ to get it. What is it and what is it used for?

This would be quite unfortunate as I'd need to tap in the QApplication. I'd 
probably could write a class inheriting QApplication and make accessible its 
x11* ... If so, The silly question comes: how do I actually write the 
bindings..? :)

Cheers,

Laur

- -- 
Laur Ivan                                       Tel  : +353-1-6674336
Software Design Engineer                        eMail: laur.ivan at corvil.com
Corvil Ltd.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/4s6MrIaFaLsloSMRAvkyAKDOE3uCeN9+4cKS+AlE/rFOlPV3mQCfRbDZ
hTe7SB5VHIbkz0d54uTmREk=
=0yQF
-----END PGP SIGNATURE-----




More information about the PyQt mailing list