How to get the mouse cursor position in TK?
heinerlitz at gmx.de
Mon Oct 7 19:19:38 CEST 2002
hi Thank u!
event.x_root works but I have another Problem: I want to pop-up an whole new
WINDOW, but the Tk() Objects dont know the gm place. So how can I place tk
Objects, and NOT widgets inside a parent?
I have got the mentioned listbox and select one entry. Now If there is a
right-mouse-button event I want to know what line was selected. Howtodo?
> Assuming you pass the event to the popup function
> event.x_root and event.y_root should be what you want:
More information about the Python-list