Hi there,
I want to use the pyHook module in Python, and so I did follow a tutorial found on the wiki page of pyHook https://sourceforge.net/p/pyhook/wiki/PyHook_Tutorial/
And there I found the code for 'Keyboard Hooks', which works.
But I do not understand the 'event' variable? If I understand right, the 'event' variable is just an empty variable? Why is it treated like if it was a class or an instance? It does not have any properties whatsoever? I even tried to rename it to something else and it is still working, but how? This variable is not linked in any way to the pyHook module right?
Can someone please explain what is going on, it just doesn't seem to be logic to me?
Thanks in advance 🤝
I want to use the pyHook module in Python, and so I did follow a tutorial found on the wiki page of pyHook https://sourceforge.net/p/pyhook/wiki/PyHook_Tutorial/
And there I found the code for 'Keyboard Hooks', which works.
But I do not understand the 'event' variable? If I understand right, the 'event' variable is just an empty variable? Why is it treated like if it was a class or an instance? It does not have any properties whatsoever? I even tried to rename it to something else and it is still working, but how? This variable is not linked in any way to the pyHook module right?
Can someone please explain what is going on, it just doesn't seem to be logic to me?
Thanks in advance 🤝

