[Tkinter-discuss] Re: Listbox selection issue

Fredrik Lundh fredrik at pythonware.com
Mon Apr 19 17:26:26 EDT 2004


Michael Lange wrote:

>         # where the corner of the listbox is relative to the screen:
>         x_org = self.listbox.winfo_rootx()
>         y_org = self.listbox.winfo_rooty()
>         # where the pointer is relative to the listbox widget:
>         x = event.x_root - x_org
>         y = event.y_root - y_org

any reason you cannot just do

        x = event.x
        y = event.y

?

</F>






More information about the Tkinter-discuss mailing list