[Tutor] Button 1 Motion Event

Alan Gauld alan.gauld at btinternet.com
Wed Dec 5 02:05:19 CET 2007


"Johnston Jiaa" <oclbdk at gmail.com> wrote

> I'm creating a drawing program, like MS Paint in Tkinter.  I bound
> the <B1-Motion> event to my Canvas object.  The function it's bound
> to creates an oval at the event's x and y attributes.
>
> This works fine if the user is dragging slowly, but if he does a
> sudden dragging motion, the ovals are very far apart.  Is there any
> way to fix this?

Its hard to tell what might be happening without code.

Can you cut your code to a minimum that demonstrates the problem
and post it? Particularly the method that you are using for the B1 
event.

Alan G. 




More information about the Tutor mailing list