Re: clutter: python3 button press event




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.

Should I be using

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

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




Regards,

-Lionel

On 22/10/12 08:05, Patrick Shirkey wrote:
Hi,

If I use :

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

The button press event is received.


However, I would like to use something like the following :

     roundrect = RoundRectangle()
     stage.add_actor(roundrect)
     roundrect.connect("button-press-event", on_click)


Attaching the "button press event" to a clutter "actor" works fine in
python2 but it seems there is something different in python3 that I am
missing?



--
Patrick Shirkey
Boost Hardware Ltd
_______________________________________________
clutter-list mailing list
clutter-list gnome org
https://mail.gnome.org/mailman/listinfo/clutter-list

_______________________________________________
clutter-list mailing list
clutter-list gnome org
https://mail.gnome.org/mailman/listinfo/clutter-list



--
Patrick Shirkey
Boost Hardware Ltd



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