Re: [clutter] scrolling



On Thu, Nov 8, 2012 at 12:42 PM, Patrick Shirkey

Do you have a python3 example of using the scrollActor as a parent
container with (multiple) child actors inside the container?


This code which is working for me except for set_scroll_mode(). Not sure
what the python syntax is for the ClutterScrollMode variable.

    point = Clutter.Point()

    scrollActor = Clutter.ScrollActor()
    scrollActor.set_size(1200,768)
    scrollActor.set_scroll_mode(Clutter.SCROLL_HORIZONTALLY)
    stage.add_actor(scrollActor)

    point.x +=50
    scrollActor.scroll_to_point(point)





--
Patrick Shirkey
Boost Hardware Ltd



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