Re: clutter: python3 button press event
- From: Emmanuele Bassi <ebassi gmail com>
- To: Patrick Shirkey <pshirkey boosthardware com>
- Cc: clutter-list gnome org
- Subject: Re: clutter: python3 button press event
- Date: Mon, 22 Oct 2012 09:55:06 +0100
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]