How do I take a screenshot using GdkPixbuf?
1 answer
Use Gtk.OffscreenWindow
:
offscreen_window = Gtk.OffscreenWindow() offscreen_window.add(widget_that_needs_screenshotting) pixbuf = offscreen_window.get_pixbuf()
+2
source to share