[PyQt] adding keypress event

mw mark at tangsoo.us
Thu Dec 23 18:00:21 GMT 2010


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>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
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101223/8cbd496e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KeyPressDemo.py
Type: application/octet-stream
Size: 2769 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101223/8cbd496e/attachment.obj>


More information about the PyQt mailing list