This is the first time that I'm going to use Xlib for achieve what I need to do: detect locks keys state.

I am developing an application (in PyQt) to show in screen when the user enabled or disable those keys.

I am intermediate experience developer, so I see Xlib kind of complex (yes, I need to read more too).
Can someone point me out a small example of how can I catch the locks keys events/state?

Thanks in advance.



Gustavo A. Díaz


"Desarrollando un mundo Libre"