From pykde Thu Feb 22 16:41:39 2024 From: Jason Hallen Date: Thu, 22 Feb 2024 16:41:39 +0000 To: pykde Subject: Re: PyQt6 and QWindowCapture Message-Id: X-MARC-Message: https://marc.info/?l=pykde&m=170862001505559 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--000000000000c211730611fb1ef3" --000000000000c211730611fb1ef3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable That's great to hear. I wonder what's going wrong for me then. When importing the class I get this error: ImportError: cannot import name 'QWindowCapture' from 'PyQt6.QtMultimedia' (/Users/hallenj/miniconda3/envs/csound/lib/python3.11/site-packages/PyQt6/ QtMultimedia.abi3.so) I've got the 6.5.1 version. Is there a different version or a particular distribution of PyQt6 I should be using? Thanks for your help, Jason On Thu, Feb 22, 2024 at 10:27=E2=80=AFAM Phil Thompson wrote: > On 22/02/2024 15:36, Jason Hallen wrote: > > Hello, > > > > Is there a reason that QtMultimedia's QWindowCapture class isn't > > implemented in PyQt6? I'm able to use QScreenCapture to record a > > screencast > > of my entire screen, but I'm hoping to record a screencast of a > > specific > > window within PyQt. > > > > Thanks! > > Jason > > It is implemented. > > Phil > --000000000000c211730611fb1ef3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
That's great to hear. I wonder what's going w= rong for me then. When importing the class I get this error:

=
ImportError: cannot import name 'QWindowCapture' from &#= 39;PyQt6.QtMultimedia' (/Users/hallenj/miniconda3/envs/csound/lib/pytho= n3.11/site-packages/PyQt6/QtMultime= dia.abi3.so)

I've got the 6.5.1 version. I= s there a different version or a particular distribution of PyQt6 I should = be using?

Thanks for your help,
Jason

On Thu, Feb 22, 2024 at 10:27=E2=80=AFAM Phil Thompson <phil@riverbankcomputing.com>= wrote:
On 22/02= /2024 15:36, Jason Hallen wrote:
> Hello,
>
> Is there a reason that QtMultimedia's QWindowCapture class isn'= ;t
> implemented in PyQt6? I'm able to use QScreenCapture to record a <= br> > screencast
> of my entire screen, but I'm hoping to record a screencast of a > specific
> window within PyQt.
>
> Thanks!
> Jason

It is implemented.

Phil
--000000000000c211730611fb1ef3--