Re: binding - python

2006-04-07 Thread beta
Hi John, It works. Thank you veyr much. Cheers, Q -- http://mail.python.org/mailman/listinfo/python-list

Re: binding - python

2006-04-06 Thread John McMonagle
On Thu, 2006-04-06 at 16:39 -0700, beta wrote: > Hi John, > > It works! thank you vey much. > > I have another question. I would very appreciated if you have any clue. > > I want the ball STOP whenever mouse is clicked anywhere, then ball KEEP > MOVING when next mouse click is applied. Thanks. >

Re: binding - python

2006-04-06 Thread beta
Hi John, It works! thank you vey much. I have another question. I would very appreciated if you have any clue. I want the ball STOP whenever mouse is clicked anywhere, then ball KEEP MOVING when next mouse click is applied. Thanks. Regards, Quoc -- http://mail.python.org/mailman/listinfo/pyth

Re: binding - python

2006-04-05 Thread John McMonagle
Quoc, the following code, verbatim, works for me: from Tkinter import * class Pong(Frame): def createWidgets(self): self.QUIT = Button(self, text='QUIT', foreground='red', command=self.quit) self.QUIT.pack(side=LEFT, fill=BOTH) ## The playi

binding - python

2006-04-05 Thread beta
Dear All, I am new with Python. I have question on binding. I have small pingpong application, I want to change color og the ball whenever mouse is clicked. I have theBall and changeColor functions. I don't know how to bind it together. Does anyone know? I am very appreciate of your help. Thanks.