Send commitlog mailing list submissions to
commitlog@lists.openmoko.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:
1. r4725 - in developers/tick: . touchtest ([EMAIL PROTECTED])
2. Openmoko's OpenEmbedded repository. This is used to build the
Openmoko distribution: Changes to 'org.openmoko.dev'
([EMAIL PROTECTED])
--- Begin Message ---
Author: tick
Date: 2008-10-20 10:21:08 +0200 (Mon, 20 Oct 2008)
New Revision: 4725
Added:
developers/tick/touchtest/
developers/tick/touchtest/touch_test.py
Log:
[touchtest] Adding a tiny python efl application that
allow users to observe the event's of touch screen.
Added: developers/tick/touchtest/touch_test.py
===================================================================
--- developers/tick/touchtest/touch_test.py (rev 0)
+++ developers/tick/touchtest/touch_test.py 2008-10-20 08:21:08 UTC (rev
4725)
@@ -0,0 +1,73 @@
+#!/usr/bin/env python
+import evas
+import ecore
+import ecore.evas
+import sys
+
+pool = []
+def cleaner_cb(cell, ev, *a, **ka):
+ while len(pool):
+ dot = pool.pop()
+ dot.delete()
+
+def mousedown_cb(cell, ev, *a, **ka):
+ x = ev.position.canvas.x
+ y = ev.position.canvas.y
+ dot = canvas.Rectangle(size=(5,5), pos=(x,y), color=(0, 255, 0, 255))
+ dot.pass_events_set(True)
+ print "Down: ("+str(x)+", "+str(y)+")"
+ dot.show()
+ pool.append(dot)
+ return True
+
+
+def mousemove_cb(cell, ev, *a, **ka):
+ x = ev.position.canvas.x
+ y = ev.position.canvas.y
+ dot = canvas.Rectangle(size=(2,2), pos=(x,y), color=(0, 0, 255, 128))
+ dot.pass_events_set(True)
+ print "Move: ("+str(x)+", "+str(y)+")"
+ dot.show()
+ pool.append(dot)
+ return True
+
+
+def mouseup_cb(cell, ev, *a, **ka):
+ x = ev.position.canvas.x
+ y = ev.position.canvas.y
+ dot = canvas.Rectangle(size=(5,5), pos=(x,y), color=(255, 255, 255,
255))
+ dot.pass_events_set(True)
+ print "Up: ("+str(x)+", "+str(y)+")"
+ dot.show()
+ pool.append(dot)
+ return True
+
+def try_to_put_a_screen(ee, filename):
+ screen = canvas.Image()
+ screen.file_set(filename)
+ w,h = ee.size
+ screen.move(0,0)
+ screen.resize(w,h)
+ screen.fill_set(0,0,w, h)
+ screen.pass_events_set(True)
+ return screen
+
+if __name__ == '__main__':
+ ee = ecore.evas.SoftwareX11(w=480, h=590)
+ ee.title_set("Touch Test")
+ canvas = ee.evas
+ bg = canvas.Rectangle(color=(0, 0, 0, 255))
+ bg.size = canvas.size
+ bg.propagate_events = True
+ bg.on_mouse_down_add(mousedown_cb)
+ bg.on_mouse_up_add(mouseup_cb)
+ bg.on_mouse_move_add(mousemove_cb)
+ if len(sys.argv) >= 2:
+ screen = try_to_put_a_screen(ee, sys.argv[1])
+ screen.show()
+ cleaner = canvas.Rectangle(size=(50,50), pos=(50,0), color=(255, 255,
255, 255))
+ cleaner.on_mouse_down_add(cleaner_cb)
+ bg.show()
+ cleaner.show()
+ ee.show()
+ ecore.main_loop_begin()
Property changes on: developers/tick/touchtest/touch_test.py
___________________________________________________________________
Name: svn:executable
+ *
--- End Message ---
--- Begin Message ---
classes/icecc.bbclass | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
New commits:
commit 74d6f47d27ea08af0b70459c4e7961898fdaecb1
Author: Julian_chu <[EMAIL PROTECTED]>
Date: Mon Oct 20 17:15:28 2008 +0800
[icecc.bbclass] Add connman into blacklist
Disable icecc to pass compiling
--- End Message ---
_______________________________________________
commitlog mailing list
commitlog@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/commitlog