"V H" wrote: > I have created a Text on a Frame. A button "Mark" can change the color of > the second line in the Text. When the cursor moves to the second line, some > explaination is needed. I use Toplevel for that. > > Now I prefer the Toplevel window is generated besides the cursor. How can I > get the position of the cursor? It should not be the relative position > because the fuction geometry() uses the absolute one.
you can use the x_root and y_root event attributes to get the "absolute" pointer location. </F> _______________________________________________ Tkinter-discuss mailing list [email protected] http://mail.python.org/mailman/listinfo/tkinter-discuss
