Question

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.)

Was it helpful?

Solution

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().

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top