gtk.OffscreenWindow
class gtk.OffscreenWindow(gtk.Window): |
+--GObject +-- gtk.Object +-- gtk.Widget +-- gtk.Container +-- gtk.Bin +-- gtk.Window +-- gtk.OffscreenWindow
gtk.OffscreenWindow ()
Returns : | A pointer to a gtk.Widget |
This constructor is available in PyGTK 2.20 and above.
Creates a toplevel container widget that is used to retrieve
snapshots of widgets without showing them on the screen. For
widgets that are on the screen and part of a normal widget
hierarchy, gtk.Widget.get_snapshot
can be used instead.
def get_pixmap()
Returns : | A GdkPixmap pointer to the offscreen pixmap, or NULL . |
This method is available in PyGTK 2.20 and above.
Retrieves a snapshot of the contained widget in the form of
a GdkPixmap
. If you need to keep this around over window
resizes then you should add a reference to it.
def get_pixbuf()
Returns : | A GdkPixbuf pointer, or NULL . |
This method is available in PyGTK 2.20 and above.
Retrieves a snapshot of the contained widget in the form of
a GdkPixbuf
. This is a new pixbuf with a reference count of 1,
and the application should unreference it once it is no longer
needed.