View Single Post
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#310
Originally Posted by dwould View Post
a) written in python
Yes, it is.

Originally Posted by dwould View Post
b) captures events from the volume/zoom rocker?
The volume keys are simply F7 and F8 keys. However, the hildon desktop captures the key events before they reach your application, so you have to set a Xatom property on the window that wants to receive these keys:
Code:
# we need to notify Maemo5 that we want to use the volume keys
self.__window.window.property_change("_HILDON_ZOOM_KEY_ATOM",
    "XA_INTEGER", 32,
    gtk.gdk.PROP_MODE_REPLACE,
    [1])
That is, call property_change on the GdkWindow (window) member of a GtkWindow or HildonWindow.
__________________
Tidings - RSS and Podcast aggregator for Jolla - https://github.com/pycage/tidings
Cargo Dock - file/cloud manager for Jolla - https://github.com/pycage/cargodock
 

The Following User Says Thank You to pycage For This Useful Post: