Re: [clutter] scrolling
- From: Emmanuele Bassi <ebassi gmail com>
- To: Patrick Shirkey <pshirkey boosthardware com>
- Cc: clutter-list gnome org
- Subject: Re: [clutter] scrolling
- Date: Fri, 9 Nov 2012 16:34:08 +0000
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]