From: phani on 2 Feb 2010 09:11 All, I am having a tk scrollbar widget and added a callback to the "- command" option. In linux if click on the scrollbar arrows (up or down) the callback is getting called recursively until i double click outside the widget. In windows it is properly(only once) getting called. Is there any focusing issue on linux with the scrollbar? Any help on this will be appreciated. Thanks, Phani
From: Bryan Oakley on 3 Feb 2010 14:07 On Feb 2, 8:11 am, phani <phani...(a)gmail.com> wrote: > All, > > I am having a tk scrollbar widget and added a callback to the "- > command" option. In linux if click on the scrollbar arrows (up or > down) the callback is getting called recursively until i double click > outside the widget. In windows it is properly(only once) getting > called. Is there any focusing issue on linux with the scrollbar? > No, there are not focusing issues on linux. Do you see the problem with the following tiny program? text .t -yscrollcommand [list .vsb set] scrollbar .vsb -orient vertical -command [list .t yview] pack .t -side left -fill both -expand true pack .vsb -side right -fill y -expand false .t insert end [join [info commands] \n] If you don't see the problem with the above code, the problem is likely in your code.
|
Pages: 1 Prev: difference between ** operator and pow? Next: not all variables bound |