Re: [clutter] scrolling



hi;

On 9 November 2012 12:08, Patrick Shirkey <pshirkey boosthardware com> wrote:
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)

  scrollActor.set_scroll_mode(Clutter.ScrollMode.HORIZONTALLY)

    stage.add_actor(scrollActor)

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

hope this helps.

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]