Hmm, is that all you need to do? I subclassed a rectangle and did this:
self.reactive = True
self.connect("button-press-event", self.on_button_press_event)
And after that I defined on_button_press_event to simply close the
app. Unfortunately it doesn't do so when I click an instance of this
class on the screen.
On 7/18/08, Neil Roberts <[EMAIL PROTECTED]> wrote:
> On Fri, 2008-07-18 at 19:03 -0400, Jack Smith wrote:
>
>> How do I get multiple actors on the screen to detect
>> when they've been clicked?
>
> You need to set the 'reactive' property on the actor. I don't exactly
> know how to do this with Python, but at a guess it's probably something
> like:
>
> rect.set_reactive(True)
>
> - Neil
>
>
--
To unsubscribe send a mail to [EMAIL PROTECTED]