Re: [Tutor] Button 1 Motion Event

2007-12-05 Thread Luke Paireepinart
Johnston Jiaa wrote: > >> Just don't distinguish between quick and slow drags. Just keep a >> temporary variable that has the previous mouse position, and draw >> ovals from there to the current mouse position every time your >> function is called. > > I now have the variable with the previous

Re: [Tutor] Button 1 Motion Event

2007-12-04 Thread Tiger12506
ouse position in that function. - Original Message - From: "Johnston Jiaa" <[EMAIL PROTECTED]> To: Sent: Tuesday, December 04, 2007 7:30 PM Subject: [Tutor] Button 1 Motion Event > I'm creating a drawing program, like MS Paint in Tkinter. I bound > the

Re: [Tutor] Button 1 Motion Event

2007-12-04 Thread Luke Paireepinart
Johnston Jiaa wrote: > I'm creating a drawing program, like MS Paint in Tkinter. I bound > the 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 m

Re: [Tutor] Button 1 Motion Event

2007-12-04 Thread Alan Gauld
"Johnston Jiaa" <[EMAIL PROTECTED]> wrote > I'm creating a drawing program, like MS Paint in Tkinter. I bound > the 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 >

[Tutor] Button 1 Motion Event

2007-12-04 Thread Johnston Jiaa
I'm creating a drawing program, like MS Paint in Tkinter. I bound the 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 ap