Mouse event - binding
John McMonagle
johnmc at velseis.com.au
Wed Apr 5 19:26:32 EDT 2006
On Wed, 2006-04-05 at 16:04 -0700, beta wrote:
> 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, '<Button-1>', changeColour)
>
Sorry, that should read:
self.draw.tag_bind(self.ball, '<Button-1>', self.changeColour)
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Python-list
mailing list