maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   using +/- button (https://talk.maemo.org/showthread.php?t=55471)

13guppies 2010-06-07 18:00

using +/- button
 
I'm new to writing apps (with Python), but I want to make use of the 'zoom in'/'zoom out' toggle button with Qt on the n900. What is the easiest way to detect key presses? Examples/hints/resources would be really helpful. Thanks!

danielwilms 2010-06-08 06:40

Re: using +/- button
 
Hi,

there is an example in the official Qt documentation.

Daniel

13guppies 2010-06-08 18:29

Re: using +/- button
 
Wow, I can't believe I haven't found that before now. However, I'm having a hard time converting it into Python, even after installing the Python X Library, and unfortunately xlib is not well documented.


All times are GMT. The time now is 21:19.

vBulletin® Version 3.8.8