Frage

The following is about gtk2 with the Quartz backend on Mac. If I have a gtk.Window (or a gdk.Window), how do I get the underlying NSWindow (preferably as a pyobjc object, or if that's not possible, just a pointer)?

(I'm trying to get [window windowNumber], which is needed to enable blur-behind transparent windows.)

War es hilfreich?

Lösung

Not sure about the exact name of the function in pygtk, but I believe that in C you can call gdk_quartz_window_get_nswindow().

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top