Hi John,
It works. Thank you veyr much.
Cheers,
Q
--
http://mail.python.org/mailman/listinfo/python-list
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
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.
Hi John,
It don't work!
I did what you told me, here is theBall function
def theBall(self):
self.ball = self.draw.create_oval("0i", "0i", "0.20i",
"0.20i",
fill="red")
self.draw.tag_bind(self.ball, '', changeColour)
Would you review all
Dear John,
Thanks for your help. I don't know how to bind the ball only into a
program. Would you mind help me on this? I added the changeColour
function, here is a complete program.
---
from Tkinter import *
import string
class Pong(Frame):
def createWidgets(self):
Hello All,
I am new with Python, your help would be very appreciated.
I have a simple pinpong applicaiton. I would like make a ball's color
change when mouse is clicked on it.
Here is my sample code:
from Tkinter import *
import string
class Pong(Frame):
def createWidgets(self):
The message contains Unicode characters and has been sent as a binary
attachment.
--
http://mail.python.org/mailman/listinfo/python-list