Capturing mouse events outside wx.Frame in Python
问题 In Python using wxPython, how can I set the transparency and size of a window based on the proximity of the mouse relative to the application's window, or frame? Eg. similar to a hyperbolic zoom, or The Dock in MAC OS X? I am trying to achieve this effect with a png with transparency and a shaped window. Any libraries or code snippets that do this would be great too. Thanks. 回答1: Here's code to do it. Basically uses the approach mentioned by Infinity77. Tested on Windows. Works nicely! import