[PyQt] adding keypress event

Janwillem van Dijk jwevandijk at xs4all.nl
Fri Dec 24 08:35:23 GMT 2010


On 12/23/2010 07:00 PM, mw wrote:
> hope this helps.
>
> written on python 2.7 with pyqt 4.8.1 on WinXP
>
>
>
> On Thu, Dec 23, 2010 at 6:14 AM, Janwillem van Dijk 
> <jwevandijk at xs4all.nl <mailto:jwevandijk at xs4all.nl>> wrote:
>
>     I have small application build with Eric/Qt Designer. Even for
>     somebody like me who does not really understand events, slots,
>     signals and signatures this works great. But now I am stuck
>     because I want to intercept the PgDn key to do something special
>     (fire a camera).
>     My projcect (interacting with a camera using gphoto2) consists of
>     the following files:
>     ui/capture_photo_form.ui (made with Qt Designer)
>     ui/Ui_capture_photo_form.py (Eric: Compiled Form)
>     ui/capture_photo_form.py (Eric: Generate Dialogue Code plus my own
>     code)
>     capture_photo.py (creates application)
>
>     Please help in the form a piece of example code.
>     Many thanks, Janwillem
>     _______________________________________________
>     PyQt mailing list PyQt at riverbankcomputing.com
>     <mailto:PyQt at riverbankcomputing.com>
>     http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
>
Thanks a lot, it works. Had seen such an example in "Rapid Gui 
Programming with Python and Qt" but could not believe it would be that 
simple so I even didn't try. Apparently it is simple.
Thanks again, Janwillem.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101224/7deb18a7/attachment-0001.html>


More information about the PyQt mailing list