[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] adding keypress event
From:       Janwillem van Dijk <jwevandijk () xs4all ! nl>
Date:       2010-12-24 8:35:23
Message-ID: 4D145B4B.4020207 () xs4all ! nl
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@xs4all.nl <mailto:jwevandijk@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@riverbankcomputing.com
>     <mailto:PyQt@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.

[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    On 12/23/2010 07:00 PM, mw wrote:
    <blockquote
      cite="mid:AANLkTingSvUozNZFhfmfvk8+6TPEstTci34wN3QKV-Mh@mail.gmail.com"
      type="cite">hope this helps.<br>
      <br>
      written on python 2.7 with pyqt 4.8.1 on WinXP<br>
      <br>
      <br>
      <br>
      <div class="gmail_quote">On Thu, Dec 23, 2010 at 6:14 AM,
        Janwillem van Dijk <span dir="ltr">&lt;<a
            moz-do-not-send="true" href="mailto:jwevandijk@xs4all.nl">jwevandijk@xs4all.nl</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">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).<br>
          My projcect (interacting with a camera using gphoto2) consists
          of the following files:<br>
          ui/capture_photo_form.ui (made with Qt Designer)<br>
          ui/Ui_capture_photo_form.py (Eric: Compiled Form)<br>
          ui/capture_photo_form.py (Eric: Generate Dialogue Code plus my
          own code)<br>
          capture_photo.py (creates application)<br>
          <br>
          Please help in the form a piece of example code.<br>
          Many thanks, Janwillem<br>
          _______________________________________________<br>
          PyQt mailing list &nbsp; &nbsp;<a moz-do-not-send="true"
            href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
          <a moz-do-not-send="true"
            href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt"
            target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
        </blockquote>
      </div>
      <br>
    </blockquote>
    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.<br>
    Thanks again, Janwillem.<br>
  </body>
</html>


_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic