kuuko pushed a commit to branch master.
commit 75cfdd1db7c524435b548747b70f94d7fb613388
Author: Kai Huuhko <[email protected]>
Date: Sat Apr 27 18:59:51 2013 +0000
Elementary: Add GestureLayer test to the main list of tests.
---
examples/elementary/test.py | 3 +++
examples/elementary/test_gesture_layer.py | 3 ++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/examples/elementary/test.py b/examples/elementary/test.py
index 380f3e0..260f8df 100755
--- a/examples/elementary/test.py
+++ b/examples/elementary/test.py
@@ -93,6 +93,9 @@ items = [
("Thumb", "test_thumb", "thumb_clicked"),
("Video", "test_video", "video_clicked"),
]),
+ ("Input", [
+ ("Gesture Layer", "test_gesture_layer", "gesture_layer_clicked"),
+ ]),
("Lists", [
("List", "test_list", "list_clicked"),
("List 2", "test_list", "list2_clicked"),
diff --git a/examples/elementary/test_gesture_layer.py
b/examples/elementary/test_gesture_layer.py
index 4f5d0cd..af81434 100644
--- a/examples/elementary/test_gesture_layer.py
+++ b/examples/elementary/test_gesture_layer.py
@@ -297,6 +297,8 @@ def gesture_layer_clicked(obj):
win.title = "Gesture Layer"
win.autodel = True
win.size = w, h
+ if obj is None:
+ win.callback_delete_request_add(lambda o: elementary.exit())
bg = Background(win)
bg.file = "images/wood_01.jpg"
@@ -319,7 +321,6 @@ def gesture_layer_clicked(obj):
photos.append(photo_object_add(win, postit, None, 50, 50, 382, 400, 355))
- win.callback_delete_request_add(lambda o: elementary.exit())
win.show()
if __name__ == "__main__":
--
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1