Determining a Wayland window ID from Python

Emmanuele Bassi ebassi at gmail.com
Fri Jul 5 12:27:14 UTC 2019


On Fri, 5 Jul 2019 at 09:44, Marius Gedminas <marius at gedmin.as> wrote:

> Try window.get_property("window").export_handle()?  Your previous
> example (and error message) shows that window.get_property("window")
> gives you a GdkWaylandWindow, and usually Python method names match C
> function names without the type prefix.
>
> (I cannot find any mention of GdkWayland on
> https://lazka.github.io/pgi-docs,
> which is usually my go-to site for Python GTK binding questions.)
>

The GDK backend for Wayland does not generate introspection data, so you
cannot use the GdkWayland API from Python, or any other language that is
not C.

Ciao,
 Emmanuele.

-- 
https://www.bassi.io
[@] ebassi [@gmail.com]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20190705/0694633e/attachment.html>


More information about the Flatpak mailing list