By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,957 Members | 2,017 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,957 IT Pros & Developers. It's quick & easy.

Binding and the motion bind in Canvas in Tkinter

P: 5
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
Share this Question
Share on Google+
1 Reply


bartonc
Expert 5K+
P: 6,596
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.