[pyclutter] examples: Select first item in scroll actor's menu
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyclutter] examples: Select first item in scroll actor's menu
- Date: Thu, 30 Apr 2015 12:55:34 +0000 (UTC)
commit fd6ce2df7f23bbcaca354ab5e8e4d6bf5bc46e3a
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Apr 30 13:54:46 2015 +0100
examples: Select first item in scroll actor's menu
examples/scroll-actor.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/examples/scroll-actor.py b/examples/scroll-actor.py
index c9eb95c..eba77ab 100644
--- a/examples/scroll-actor.py
+++ b/examples/scroll-actor.py
@@ -64,6 +64,8 @@ def create_menu_actor(scroll):
for label in menu_items:
menu.add_child(MenuItem(label))
+ menu.select_item(0)
+
def create_scroll_actor(stage):
scroll = Clutter.ScrollActor(name='scroll')
scroll.set_position(0, 18)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]