Hi,

'reactive' is a 'GObject' property. You can set it either via

self.set_property('reactive', True) or
self.props.reactive = True

so long

:wq buz

On Fri, Jul 18, 2008 at 09:29:53PM -0400, Jack Smith wrote:
> 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]
> 

-- 
Computers make very fast, very accurate mistakes.

GnuPG Fingerprint: 2FFF FC48 C7DF 1EA0 00A0  FD53 8C35 FD2E 6908 7B82

Attachment: signature.asc
Description: Digital signature

Reply via email to