added zooming with plus/minus keys eg. nokia n770
git-svn-id: http://www.neo1973-germany.de/svn@17 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
parent
f4e158e309
commit
33ddb6c495
1 changed files with 4 additions and 0 deletions
|
@ -55,6 +55,10 @@ class TestView(edje.Edje):
|
|||
self.evas_canvas.evas_obj.fullscreen = not self.evas_canvas.evas_obj.fullscreen
|
||||
elif event.keyname in ("Escape", "q"):
|
||||
ecore.main_loop_quit()
|
||||
elif event.keyname in ("F7","plus") and not self.animate:
|
||||
ecore.timer_add(0.05, self.animate_zoom_in)
|
||||
elif event.keyname in ("F8","minus") and not self.animate:
|
||||
ecore.timer_add(0.05, self.animate_zoom_out)
|
||||
elif event.keyname in ("Up",) and not self.animate:
|
||||
delta_y = -10
|
||||
for icon in self.icons:
|
||||
|
|
Loading…
Reference in a new issue