~ubuntu-branches/ubuntu/natty/pygtk/natty-proposed

« back to all changes in this revision

Viewing changes to docs/html/class-gtkimage.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-06-22 16:49:42 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090622164942-19zeltp4z0u5iw72
Tags: 2.15.2-0ubuntu1
* New upstream version:
  - Rename gtk.Statusbar.remove() to gtk.Statusbar.remove_message
  - Allow pango.Context creation 
  - Make gtk.gdk.Pixbuf.add_alpha accept integers, retaining backward
    compatibility accepting also chars 
  - Protect window obj from GC in gtk.window_get_toplevels 
  - Plug huge number of memory leaks in Pango wrappers 
  - Add gtk.gdk.WINDOWING constant 
  - Wrap gdk_pixbuf_apply_embedded_orientation 
  - Modernize constructors of seven more types 
  - Don't free a string we don't own 
  - Some docs tweaking 
* debian/control.in:
  - set vcs location
* debian/patches/02_fix_get_application_info_crash.patch:
  - the change is in the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.Image</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="prev" href="class-gtkiconview.html" title="gtk.IconView"><link rel="next" href="class-gtkimagemenuitem.html" title="gtk.ImageMenuItem"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">gtk.Image</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkiconview.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkimagemenuitem.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkimage"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.Image</h2><p>gtk.Image — A widget displaying an image
2
 
</p></div><div class="refsect1" lang="en"><a name="id3520682"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.Image</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkmisc.html" title="gtk.Misc">gtk.Misc</a></span></span>):
 
2
</p></div><div class="refsect1" lang="en"><a name="id3721488"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.Image</span></span>(<span class="ooclass"><span class="classname"><a class="link" href="class-gtkmisc.html" title="gtk.Misc">gtk.Misc</a></span></span>):
3
3
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-gtkimage.html#constructor-gtkimage" title="Constructor">gtk.Image</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#method-gtkimage--set-from-pixmap" title="gtk.Image.set_from_pixmap">set_from_pixmap</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixmap</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>mask</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#method-gtkimage--set-from-image" title="gtk.Image.set_from_image">set_from_image</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gdk_image</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>mask</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#method-gtkimage--set-from-file" title="gtk.Image.set_from_file">set_from_file</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filename</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#method-gtkimage--set-from-pixbuf" title="gtk.Image.set_from_pixbuf">set_from_pixbuf</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#method-gtkimage--set-from-stock" title="gtk.Image.set_from_stock">set_from_stock</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>stock_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#method-gtkimage--set-from-icon-set" title="gtk.Image.set_from_icon_set">set_from_icon_set</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon_set</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#method-gtkimage--set-from-animation" title="gtk.Image.set_from_animation">set_from_animation</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>animation</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#method-gtkimage--get-storage-type" title="gtk.Image.get_storage_type">get_storage_type</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#method-gtkimage--get-pixmap" title="gtk.Image.get_pixmap">get_pixmap</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#method-gtkimage--get-image" title="gtk.Image.get_image">get_image</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#method-gtkimage--get-pixbuf" title="gtk.Image.get_pixbuf">get_pixbuf</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#method-gtkimage--get-stock" title="gtk.Image.get_stock">get_stock</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#method-gtkimage--get-icon-set" title="gtk.Image.get_icon_set">get_icon_set</a></span>()</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#method-gtkimage--get-animation" title="gtk.Image.get_animation">get_animation</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#method-gtkimage--get-icon-name" title="gtk.Image.get_icon_name">get_icon_name</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#method-gtkimage--set-from-icon-name" title="gtk.Image.set_from_icon_name">set_from_icon_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon_name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#method-gtkimage--set-pixel-size" title="gtk.Image.set_pixel_size">set_pixel_size</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixel_size</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#method-gtkimage--get-pixel-size" title="gtk.Image.get_pixel_size">get_pixel_size</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#method-gtkimage--clear" title="gtk.Image.clear">clear</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#method-gtkimage--set-from-gicon" title="gtk.Image.set_from_gicon">set_from_gicon</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gicon</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code><br></pre></td></tr></table><pre class="programlisting">
4
4
<span class="bold"><strong>Functions</strong></span>
5
5
 
6
 
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-stock" title="gtk.image_new_from_stock">gtk.image_new_from_stock</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>stock_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-icon-set" title="gtk.image_new_from_icon_set">gtk.image_new_from_icon_set</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon_set</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-animation" title="gtk.image_new_from_animation">gtk.image_new_from_animation</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>animation</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-animation" title="gtk.image_new_from_animation">gtk.image_new_from_icon_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon_name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-pixmap" title="gtk.image_new_from_pixmap">gtk.image_new_from_pixmap</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixmap</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>mask</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-image" title="gtk.image_new_from_image">gtk.image_new_from_image</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>image</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>mask</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-file" title="gtk.image_new_from_file">gtk.image_new_from_file</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filename</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-pixbuf" title="gtk.image_new_from_pixbuf">gtk.image_new_from_pixbuf</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-gicon" title="gtk.image_new_from_gicon">gtk.image_new_from_gicon</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gicon</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code></pre></div><div class="refsect1" lang="en"><a name="id3521590"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
 
6
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-stock" title="gtk.image_new_from_stock">gtk.image_new_from_stock</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>stock_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-icon-set" title="gtk.image_new_from_icon_set">gtk.image_new_from_icon_set</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon_set</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-animation" title="gtk.image_new_from_animation">gtk.image_new_from_animation</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>animation</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-animation" title="gtk.image_new_from_animation">gtk.image_new_from_icon_name</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>icon_name</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-pixmap" title="gtk.image_new_from_pixmap">gtk.image_new_from_pixmap</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixmap</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>mask</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-image" title="gtk.image_new_from_image">gtk.image_new_from_image</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>image</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>mask</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-file" title="gtk.image_new_from_file">gtk.image_new_from_file</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>filename</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-pixbuf" title="gtk.image_new_from_pixbuf">gtk.image_new_from_pixbuf</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixbuf</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-gicon" title="gtk.image_new_from_gicon">gtk.image_new_from_gicon</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gicon</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code></pre></div><div class="refsect1" lang="en"><a name="id3722397"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
7
7
  +-- <a class="link" href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
8
8
    +-- <a class="link" href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
9
9
      +-- <a class="link" href="class-gtkmisc.html" title="gtk.Misc">gtk.Misc</a>
10
10
        +-- <a class="link" href="class-gtkimage.html" title="gtk.Image">gtk.Image</a>
11
 
</pre></div><div class="refsect1" lang="en"><a name="id3521635"></a><h2>Implemented Interfaces</h2><p>
 
11
</pre></div><div class="refsect1" lang="en"><a name="id3722441"></a><h2>Implemented Interfaces</h2><p>
12
12
                        <a class="link" href="class-gtkimage.html" title="gtk.Image"><code class="classname">gtk.Image</code></a>
13
13
                        implements 
14
14
                        <a class="link" href="class-gtkbuildable.html" title="gtk.Buildable"><code class="classname">gtk.Buildable</code></a>
32
32
<code class="literal">gtk.IMAGE_EMPTY</code>, <code class="literal">gtk.IMAGE_PIXMAP</code>,
33
33
<code class="literal">gtk.IMAGE_IMAGE</code>, <code class="literal">gtk.IMAGE_PIXBUF</code>,
34
34
<code class="literal">gtk.IMAGE_STOCK</code>, <code class="literal">gtk.IMAGE_ICON_SET</code> or
35
 
<code class="literal">gtk.IMAGE_ANIMATION</code></td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="style-properties-gtkimage"></a><h2>gtk.Image Style Properties</h2><p><a class="link" href="class-gtkwidget.html#style-properties-gtkwidget" title="gtk.Widget Style Properties">gtk.Widget Style Properties</a></p></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtkimage"></a><h2>gtk.Image Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p><p><a class="link" href="class-gtkobject.html#signal-prototypes-gtkobject" title="gtk.Object Signal Prototypes">gtk.Object Signal Prototypes</a></p><p><a class="link" href="class-gtkwidget.html#signal-prototypes-gtkwidget" title="gtk.Widget Signal Prototypes">gtk.Widget Signal Prototypes</a></p></div><div class="refsect1" lang="en"><a name="id3522157"></a><h2>Description</h2><p>The <a class="link" href="class-gtkimage.html" title="gtk.Image"><code class="classname">gtk.Image</code></a> widget
 
35
<code class="literal">gtk.IMAGE_ANIMATION</code></td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="style-properties-gtkimage"></a><h2>gtk.Image Style Properties</h2><p><a class="link" href="class-gtkwidget.html#style-properties-gtkwidget" title="gtk.Widget Style Properties">gtk.Widget Style Properties</a></p></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtkimage"></a><h2>gtk.Image Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p><p><a class="link" href="class-gtkobject.html#signal-prototypes-gtkobject" title="gtk.Object Signal Prototypes">gtk.Object Signal Prototypes</a></p><p><a class="link" href="class-gtkwidget.html#signal-prototypes-gtkwidget" title="gtk.Widget Signal Prototypes">gtk.Widget Signal Prototypes</a></p></div><div class="refsect1" lang="en"><a name="id3722963"></a><h2>Description</h2><p>The <a class="link" href="class-gtkimage.html" title="gtk.Image"><code class="classname">gtk.Image</code></a> widget
36
36
displays an image. Various kinds of objects can be displayed as an image;
37
37
usually, you would load a <a class="link" href="class-gdkpixbuf.html" title="gtk.gdk.Pixbuf"><code class="classname">gtk.gdk.Pixbuf</code></a>
38
38
("pixel buffer") from a file, and then display it. The convenience method
76
76
directly with the <a class="link" href="class-gdkpixbuf.html#function-gdk--pixbuf-new-from-inline" title="gtk.gdk.pixbuf_new_from_inline"><code class="function">gtk.gdk.pixbuf_new_from_inline</code>()</a>
77
77
function to create a pixbuf that can be used in a <a class="link" href="class-gtkimage.html" title="gtk.Image"><code class="classname">gtk.Image</code></a>.</p></div><div class="refsect1" lang="en"><a name="constructor-gtkimage"></a><h2>Constructor</h2><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtk.Image</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a newly created <a class="link" href="class-gtkimage.html" title="gtk.Image"><code class="classname">gtk.Image</code></a>
78
78
widget.</td></tr></tbody></table><p>Creates a new empty <a class="link" href="class-gtkimage.html" title="gtk.Image"><code class="classname">gtk.Image</code></a>
79
 
widget.</p></div><div class="refsect1" lang="en"><a name="id3522470"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkimage--set-from-pixmap"></a><h3>gtk.Image.set_from_pixmap</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_from_pixmap</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixmap</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>mask</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>pixmap</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkpixmap.html" title="gtk.gdk.Pixmap"><code class="classname">gtk.gdk.Pixmap</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>mask</code></strong> :</span></p></td><td>a bitmap <a class="link" href="class-gdkpixmap.html" title="gtk.gdk.Pixmap"><code class="classname">gtk.gdk.Pixmap</code></a> or
 
79
widget.</p></div><div class="refsect1" lang="en"><a name="id3723277"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkimage--set-from-pixmap"></a><h3>gtk.Image.set_from_pixmap</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_from_pixmap</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pixmap</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>mask</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>pixmap</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkpixmap.html" title="gtk.gdk.Pixmap"><code class="classname">gtk.gdk.Pixmap</code></a></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>mask</code></strong> :</span></p></td><td>a bitmap <a class="link" href="class-gdkpixmap.html" title="gtk.gdk.Pixmap"><code class="classname">gtk.gdk.Pixmap</code></a> or
80
80
<code class="literal">None</code></td></tr></tbody></table><p>The <code class="methodname">set_from_pixmap</code>() method sets the
81
81
image data from <em class="parameter"><code>pixmap</code></em> using
82
82
<em class="parameter"><code>mask</code></em>.</p></div><div class="refsect2" lang="en"><a name="method-gtkimage--set-from-image"></a><h3>gtk.Image.set_from_image</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_from_image</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>gdk_image</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>mask</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>gdk_image</code></strong> :</span></p></td><td>a <a class="link" href="class-gdkimage.html" title="gtk.gdk.Image"><code class="classname">gtk.gdk.Image</code></a> or
217
217
        For the <code class="methodname">set_from_gicon</code>() method see
218
218
        <code class="methodname"><a class="link" href="class-gtkimage.html#function-gtk--image-new-from-gicon" title="gtk.image_new_from_gicon">gtk.image_new_from_gicon</a></code>()
219
219
        for details.
220
 
      </p></div></div><div class="refsect1" lang="en"><a name="id3524789"></a><h2>Functions</h2><div class="refsect2" lang="en"><a name="function-gtk--image-new-from-stock"></a><h3>gtk.image_new_from_stock</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.image_new_from_stock</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>stock_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>stock_id</code></strong> :</span></p></td><td>a stock icon name</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>size</code></strong> :</span></p></td><td>an integer representing an icon
 
220
      </p></div></div><div class="refsect1" lang="en"><a name="id3725596"></a><h2>Functions</h2><div class="refsect2" lang="en"><a name="function-gtk--image-new-from-stock"></a><h3>gtk.image_new_from_stock</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.image_new_from_stock</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>stock_id</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>size</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>stock_id</code></strong> :</span></p></td><td>a stock icon name</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>size</code></strong> :</span></p></td><td>an integer representing an icon
221
221
size</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new <a class="link" href="class-gtkimage.html" title="gtk.Image"><code class="classname">gtk.Image</code></a>
222
222
          displaying the stock icon</td></tr></tbody></table><p>The <code class="function">gtk.image_new_from_stock</code>() function
223
223
returns a new <a class="link" href="class-gtkimage.html" title="gtk.Image"><code class="classname">gtk.Image</code></a> displaying