clutter: python3 button press event



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



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