Re: clutter: python3 button press event



hi;

On 22 October 2012 09:31, Patrick Shirkey <pshirkey boosthardware com> wrote:

On Mon, October 22, 2012 6:57 pm, Lionel Landwerlin wrote:
You might want to make sure that roundrect is reactive.

         roundrect.set_reactive(True)


Thanks for the tip but it didn't work for me.

this is... not good. can you describe your environment?

Should I be using

    roundrect.connect("button-press-event", on_click)

yes, you should use connect(); only reactive actors emit event-related
signals, so you'll also need to set the reactive property to True.

Or should I be calling add_action() to handle click events?

ClutterAction implementations merely use the event-related signals,
and the actor still needs to be reactive.

ciao,
 Emmanuele.

-- 
W: http://www.emmanuelebassi.name
B: http://blogs.gnome.org/ebassi/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]