|
|
| Do you know where your variables are? | |
| PerlMonks |
Re^4: Tkx g_bind to menu on listbox only for selected rowby v4169sgr (Novice) |
| on Jan 18, 2013 at 09:39 UTC ( #1013999=note: print w/ replies, xml ) | Need Help?? |
|
Thanks for the reply again. I've almost made it work. My problem now is that the y-coordinate returned gets interpreted by nearest() in a way that I don't expect: nearest() seems to expect a y-coordinate relative to the top of the listbox widget, but the y-coordinate given is actually the absolute, screen, coordinate. Here's my code snippet:
I can see that the current_index is always larger than I would expect it to be. Apologies if I am missing something simple!
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||