Re: clutter: python3 button press event
- From: "Patrick Shirkey" <pshirkey boosthardware com>
- To: clutter-list gnome org
- Subject: Re: clutter: python3 button press event
- Date: Mon, 22 Oct 2012 19:31:59 +1100 (EST)
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]