471,338 Members | 1,257 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,338 software developers and data experts.

Binding and the motion bind in Canvas in Tkinter

I put tag binds on the image inside a function, but even though I haven't called it, the tags are initiated when I start the program, and then it won't work again. I'm not quite sure why it is like this. (They aren't in the init method)

Also, I am using the motion bind to track the mouse, but all I end up with is a scattered line of dots, but it seems to be a timing issue as if I go slower, they get closer together.. Is the motion bind connected to time? Is there something I can use instead, or a way to track the cursor more often?
Nov 24 '07 #1
1 2513
bartonc
6,596 Expert 4TB
I put tag binds on the image inside a function, but even though I haven't called it, the tags are initiated when I start the program, and then it won't work again. I'm not quite sure why it is like this. (They aren't in the init method)
Hiya, dampflames. Please post a snippet of your code so that we may be able to help you get to the bottom of this.
Also, I am using the motion bind to track the mouse, but all I end up with is a scattered line of dots, but it seems to be a timing issue as if I go slower, they get closer together.. Is the motion bind connected to time? Is there something I can use instead, or a way to track the cursor more often?
Here, again, some portion of the relevant code will be very helpful for us.

Note that instructions on the use of CODE tags is on the right hand side of the page while you are posting. You may also add =python to the opening tag (as in [code=python]). Thanks.
Nov 24 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Rodrigo Benenson | last post: by
1 post views Thread by Elaine Jackson | last post: by
3 posts views Thread by Tuvas | last post: by
5 posts views Thread by Dean Allen Provins | last post: by
4 posts views Thread by beta | last post: by
1 post views Thread by Davy | last post: by
1 post views Thread by Albinoswordfish | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.