<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gtk.Requisition</title><meta name="generator" content="DocBook XSL Stylesheets V1.65.1"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="previous" href="class-gtkrcstyle.html" title="gtk.RcStyle"><link rel="next" href="class-gtkruler.html" title="gtk.Ruler"></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.Requisition</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkrcstyle.html">Prev</a></td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"><a accesskey="n" href="class-gtkruler.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkrequisition"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2>gtk.Requisition</h2><p>gtk.Requisition — an object containing information about the desired space
requirements of a widget.</p></div><div class="refsect1" lang="en"><a name="id3493161"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.Requisition</span></span>(<span class="ooclass"><span class="classname">gobject.GBoxed</span></span>):
<code class="methodsynopsis"> def <span class="methodname"><a href="class-gtkrequisition.html#method-gtkrequisition--copy" title="gtk.Requisition.copy">copy</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a href="class-gtkrequisition.html#method-gtkrequisition--free" title="gtk.Requisition.free">free</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3493215"></a><h2>Attributes</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table cellpadding="5" width="100%" border="0"><colgroup><col><col><col></colgroup><tbody><tr valign="top"><td valign="top">"width"</td><td valign="top">Read-Write</td><td valign="top">the desired width of the widget</td></tr><tr valign="top"><td valign="top">"height"</td><td valign="top">Read-Write</td><td valign="top">the desired height of the widget</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="id3493305"></a><h2>Description</h2><p>A <a href="class-gtkrequisition.html" title="gtk.Requisition"><tt class="classname">gtk.Requisition</tt></a>
holds the information about the desired space requirements (width and
height) of a widget. A <a href="class-gtkrequisition.html" title="gtk.Requisition"><tt class="classname">gtk.Requisition</tt></a>
object has <tt class="literal">width</tt> and <tt class="literal">height</tt> attributes
that can be read and written.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>There appears to be no way to create or use a <a href="class-gtkrequisition.html" title="gtk.Requisition"><tt class="classname">gtk.Requisition</tt></a>
in PyGTK other than as an argument in the handler for the <a href="class-gtkwidget.html" title="gtk.Widget"><tt class="classname">gtk.Widget</tt></a> "<a href="class-gtkwidget.html#signal-gtkwidget--size-request" title='The "size-request" gtk.Widget Signal'>size-request</a>" signal.</p></div></div><div class="refsect1" lang="en"><a name="id3493371"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkrequisition--copy"></a><h3>gtk.Requisition.copy</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">copy</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a copy of the <a href="class-gtkrequisition.html" title="gtk.Requisition"><tt class="classname">gtk.Requisition</tt></a></td></tr></tbody></table><p>The <tt class="methodname">copy</tt>() method returns a copy of the
<a href="class-gtkrequisition.html" title="gtk.Requisition"><tt class="classname">gtk.Requisition</tt></a>.</p></div><div class="refsect2" lang="en"><a name="method-gtkrequisition--free"></a><h3>gtk.Requisition.free</h3><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="programlisting"><code class="methodsynopsis"> def <span class="methodname">free</span>(<span class="methodparam"></span>)</code></pre></td></tr></table><p>The <tt class="methodname">free</tt>() method frees the resources
allocated to the <a href="class-gtkrequisition.html" title="gtk.Requisition"><tt class="classname">gtk.Requisition</tt></a>.</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-gtkrcstyle.html">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="gtk-class-reference.html">Up</a></td><td width="40%" align="right"><a accesskey="n" href="class-gtkruler.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.RcStyle</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">gtk.Ruler</td></tr></table></div></body></html>
|