Skip to content Skip to sidebar Skip to footer

How To Use Mac Os X Nsevents Within Wxpython Application?

I am writing an application that has to react to system wide keypresses on Mac OS X. So I found some key logger examples that should work and hit a wall, because all examples are b

Solution 1:

As nobody answered I went searching around with different angle in view.

So I discovered that Quartz module can be used to get to keyboard and mouse events. No custom loop needed, therefore wx.App() and wx.App.MainLoop() aren't getting in the way.

I also found a nice package named pynput that does just that for me, thus sparing me plenty of time. Quartz is pretty complicated, a lot of scrambled names for functions and constants. But it does a good job.

Post a Comment for "How To Use Mac Os X Nsevents Within Wxpython Application?"