Closed giohappy closed 2 years ago
Thank you for your report.
Support for this is unfortunately spotty among the various backends, so I have no immediate plans to add this feature.
You may want to have a look at pynput; it will provide you with the cursor position, and you could assume that it had not moved drastically since the menu item was invoked.
You may want to have a look at pynput; it will provide you with the cursor position, and you could assume that it had not moved drastically since the menu item was invoked.
Nice suggestion. I already have a thread-based architecture with queues, and pynput
seems to fit perfectly.
AFAICS pystray API doesn't provide a way to obtain the cursor position when the systray icon, or any menu item, is clicked. This information would be precious to be able to position custom windows.
Do you have any plan to expose this information?