[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] .windId() returns sip.voidptr
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2017-01-24 14:17:58
Message-ID: 52C1289A-1BFF-47BE-A75B-656E4CADF838 () riverbankcomputing ! com
[Download RAW message or body]
On 24 Jan 2017, at 2:10 pm, Sampsa Riikonen <sampsa.riikonen@iki.fi> wrote:
>
> Hi,
>
> When using python3 / PyQt5 combination, and calling widget's "winId" function, I \
> get sip.voidptr (i.e. a general pointer to something).
> In python3 / PyQt4 it used to give the x-window id number, which could then be \
> passed directly to the x-window system (this is useful for our custom streaming \
> applilcations).
> How can I go from sip.voidptr to a plain integer (and I don't mean the memory \
> address..).
Pass it to int().
Phil
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://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