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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-01-07 11:08:47 UTC
  • mfrom: (1.2.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100107110847-f5av7e1ttudh7ra6
Tags: 2.17.0-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.PageSetup</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-gtkoptionmenu.html" title="gtk.OptionMenu"><link rel="next" href="class-gtkpaned.html" title="gtk.Paned"></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.PageSetup</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkoptionmenu.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkpaned.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkpagesetup"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.PageSetup</h2><p>gtk.PageSetup — an object that stores page setup information (new in PyGTK
2
 
      2.10)</p></div><div class="refsect1" lang="en"><a name="id3606907"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.PageSetup</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>):
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.PageSetup</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.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="prev" href="class-gtkoptionmenu.html" title="gtk.OptionMenu"><link rel="next" href="class-gtkpaned.html" title="gtk.Paned"></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.PageSetup</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkoptionmenu.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkpaned.html">Next</a></td></tr></table><hr></div><div class="refentry" title="gtk.PageSetup"><a name="class-gtkpagesetup"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.PageSetup</h2><p>gtk.PageSetup — an object that stores page setup information (new in PyGTK
 
2
      2.10)</p></div><div class="refsect1" title="Synopsis"><a name="id3916813"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.PageSetup</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>):
3
3
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-gtkpagesetup.html#constructor-gtkpagesetup" title="gtk.PageSetup">gtk.PageSetup</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--copy" title="gtk.PageSetup.copy">copy</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--get-orientation" title="gtk.PageSetup.get_orientation">get_orientation</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--set-orientation" title="gtk.PageSetup.set_orientation">set_orientation</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>orientation</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--get-paper-size" title="gtk.PageSetup.get_paper_size">get_paper_size</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--set-paper-size" title="gtk.PageSetup.set_paper_size">set_paper_size</a></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-gtkpagesetup.html#method-gtkpagesetup--get-top-margin" title="gtk.PageSetup.get_top_margin">get_top_margin</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--set-top-margin" title="gtk.PageSetup.set_top_margin">set_top_margin</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>margin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--get-bottom-margin" title="gtk.PageSetup.get_bottom_margin">get_bottom_margin</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--set-bottom-margin" title="gtk.PageSetup.set_bottom_margin">set_bottom_margin</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>margin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--get-left-margin" title="gtk.PageSetup.get_left_margin">get_left_margin</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--set-left-margin" title="gtk.PageSetup.set_left_margin">set_left_margin</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>margin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--get-right-margin" title="gtk.PageSetup.get_right_margin">get_right_margin</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--set-right-margin" title="gtk.PageSetup.set_right_margin">set_right_margin</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>margin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--set-paper-size-and-default-margins" title="gtk.PageSetup.set_paper_size_and_default_margins">set_paper_size_and_default_margins</a></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-gtkpagesetup.html#method-gtkpagesetup--get-paper-width" title="gtk.PageSetup.get_paper_width">get_paper_width</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--get-paper-height" title="gtk.PageSetup.get_paper_height">get_paper_height</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--get-page-width" title="gtk.PageSetup.get_page_width">get_page_width</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--get-page-height" title="gtk.PageSetup.get_page_height">get_page_height</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--to-file" title="gtk.PageSetup.to_file">to_file</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>file_name</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><PYGTKDOCLINK HREF="method-gtkpagesetup--load-file">load_file</PYGTKDOCLINK></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>file_name</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-gtkpagesetup.html#function-gtk--print-run-page-setup-dialog" title="gtk.print_run_page_setup_dialog">gtk.print_run_page_setup_dialog</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>parent</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>page_setup</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>settings</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpagesetup.html#function-gtk--page-setup-new-from-file" title="gtk.page_setup_new_from_file">gtk.page_setup_new_from_file</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>file_name</code></strong></span></span>)</code></pre></div><div class="refsect1" lang="en"><a name="id3607635"></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-gtkpagesetup.html#function-gtk--print-run-page-setup-dialog" title="gtk.print_run_page_setup_dialog">gtk.print_run_page_setup_dialog</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>parent</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>page_setup</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>settings</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkpagesetup.html#function-gtk--page-setup-new-from-file" title="gtk.page_setup_new_from_file">gtk.page_setup_new_from_file</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>file_name</code></strong></span></span>)</code></pre></div><div class="refsect1" title="Ancestry"><a name="id3917541"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
7
7
  +-- <a class="link" href="class-gtkpagesetup.html" title="gtk.PageSetup">gtk.PageSetup</a>
8
 
</pre></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtkpagesetup"></a><h2>gtk.PageSetup Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p></div><div class="refsect1" lang="en"><a name="id3607681"></a><h2>Description</h2><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This class is available in PyGTK 2.10 and above.</p></div><p>A <a class="link" href="class-gtkpagesetup.html" title="gtk.PageSetup"><code class="classname">gtk.PageSetup</code></a>
 
8
</pre></div><div class="refsect1" title="gtk.PageSetup Signal Prototypes"><a name="signal-prototypes-gtkpagesetup"></a><h2>gtk.PageSetup Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p></div><div class="refsect1" title="Description"><a name="id3917587"></a><h2>Description</h2><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This class is available in PyGTK 2.10 and above.</p></div><p>A <a class="link" href="class-gtkpagesetup.html" title="gtk.PageSetup"><code class="classname">gtk.PageSetup</code></a>
9
9
    object stores the page size, orientation and margins. The idea is that
10
10
    you can get one of these from the page setup dialog and then pass it to
11
11
    the <a class="link" href="class-gtkprintoperation.html" title="gtk.PrintOperation"><code class="classname">gtk.PrintOperation</code></a>
26
26
 
27
27
    page_setup = gtk.print_run_page_setup_dialog(main_window, page_setup,
28
28
                                                 settings)
29
 
    </pre></div><div class="refsect1" lang="en"><a name="id3607778"></a><h2>Constructor</h2><div class="refsect2" lang="en"><a name="constructor-gtkpagesetup"></a><h3>gtk.PageSetup</h3><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtk.PageSetup</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 new <a class="link" href="class-gtkpagesetup.html" title="gtk.PageSetup"><code class="classname">gtk.PageSetup</code></a>.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This constructor is available in PyGTK 2.10 and above.</p></div><p>Creates a new <a class="link" href="class-gtkpagesetup.html" title="gtk.PageSetup"><code class="classname">gtk.PageSetup</code></a>.</p></div></div><div class="refsect1" lang="en"><a name="id3607863"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkpagesetup--copy"></a><h3>gtk.PageSetup.copy</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">copy</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 copy of this page setup</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">copy</code>() method copies this <a class="link" href="class-gtkpagesetup.html" title="gtk.PageSetup"><code class="classname">gtk.PageSetup</code></a>.</p></div><div class="refsect2" lang="en"><a name="method-gtkpagesetup--get-orientation"></a><h3>gtk.PageSetup.get_orientation</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_orientation</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>the page orientation</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_orientation</code>() method returns
 
29
    </pre></div><div class="refsect1" title="Constructor"><a name="id3917684"></a><h2>Constructor</h2><div class="refsect2" title="gtk.PageSetup"><a name="constructor-gtkpagesetup"></a><h3>gtk.PageSetup</h3><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtk.PageSetup</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 new <a class="link" href="class-gtkpagesetup.html" title="gtk.PageSetup"><code class="classname">gtk.PageSetup</code></a>.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This constructor is available in PyGTK 2.10 and above.</p></div><p>Creates a new <a class="link" href="class-gtkpagesetup.html" title="gtk.PageSetup"><code class="classname">gtk.PageSetup</code></a>.</p></div></div><div class="refsect1" title="Methods"><a name="id3917769"></a><h2>Methods</h2><div class="refsect2" title="gtk.PageSetup.copy"><a name="method-gtkpagesetup--copy"></a><h3>gtk.PageSetup.copy</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">copy</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 copy of this page setup</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">copy</code>() method copies this <a class="link" href="class-gtkpagesetup.html" title="gtk.PageSetup"><code class="classname">gtk.PageSetup</code></a>.</p></div><div class="refsect2" title="gtk.PageSetup.get_orientation"><a name="method-gtkpagesetup--get-orientation"></a><h3>gtk.PageSetup.get_orientation</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_orientation</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>the page orientation</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_orientation</code>() method returns
30
30
      the page orientation of the <a class="link" href="class-gtkpagesetup.html" title="gtk.PageSetup"><code class="classname">gtk.PageSetup</code></a>. The
31
 
      return value must be one of the <a class="xref" href="gtk-constants.html#gtk-page-orientation-constants" title="GTK Page Orientation Constants">GTK Page Orientation Constants</a>.</p></div><div class="refsect2" lang="en"><a name="method-gtkpagesetup--set-orientation"></a><h3>gtk.PageSetup.set_orientation</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_orientation</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>orientation</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>orientation</code></strong> :</span></p></td><td>one of the <a class="xref" href="gtk-constants.html#gtk-page-orientation-constants" title="GTK Page Orientation Constants">GTK Page Orientation Constants</a></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">set_orientation</code>() method sets the
 
31
      return value must be one of the <a class="xref" href="gtk-constants.html#gtk-page-orientation-constants" title="GTK Page Orientation Constants">GTK Page Orientation Constants</a>.</p></div><div class="refsect2" title="gtk.PageSetup.set_orientation"><a name="method-gtkpagesetup--set-orientation"></a><h3>gtk.PageSetup.set_orientation</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_orientation</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>orientation</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>orientation</code></strong> :</span></p></td><td>one of the <a class="xref" href="gtk-constants.html#gtk-page-orientation-constants" title="GTK Page Orientation Constants">GTK Page Orientation Constants</a></td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">set_orientation</code>() method sets the
32
32
      page orientation of the <a class="link" href="class-gtkpagesetup.html" title="gtk.PageSetup"><code class="classname">gtk.PageSetup</code></a>
33
33
      to the value specified by <em class="parameter"><code>orientation</code></em>. The
34
 
      value of <em class="parameter"><code>orientation</code></em> must be one of the <a class="xref" href="gtk-constants.html#gtk-page-orientation-constants" title="GTK Page Orientation Constants">GTK Page Orientation Constants</a></p></div><div class="refsect2" lang="en"><a name="method-gtkpagesetup--get-paper-size"></a><h3>gtk.PageSetup.get_paper_size</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_paper_size</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>the paper size</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_paper_size</code>() method gets the
35
 
      paper size of the <a class="link" href="class-gtkpagesetup.html" title="gtk.PageSetup"><code class="classname">gtk.PageSetup</code></a>.</p></div><div class="refsect2" lang="en"><a name="method-gtkpagesetup--set-paper-size"></a><h3>gtk.PageSetup.set_paper_size</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_paper_size</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>size</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkpapersize.html" title="gtk.PaperSize"><code class="classname">gtk.PaperSize</code></a></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">set_paper_size</code>() method sets the
 
34
      value of <em class="parameter"><code>orientation</code></em> must be one of the <a class="xref" href="gtk-constants.html#gtk-page-orientation-constants" title="GTK Page Orientation Constants">GTK Page Orientation Constants</a></p></div><div class="refsect2" title="gtk.PageSetup.get_paper_size"><a name="method-gtkpagesetup--get-paper-size"></a><h3>gtk.PageSetup.get_paper_size</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_paper_size</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>the paper size</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_paper_size</code>() method gets the
 
35
      paper size of the <a class="link" href="class-gtkpagesetup.html" title="gtk.PageSetup"><code class="classname">gtk.PageSetup</code></a>.</p></div><div class="refsect2" title="gtk.PageSetup.set_paper_size"><a name="method-gtkpagesetup--set-paper-size"></a><h3>gtk.PageSetup.set_paper_size</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_paper_size</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>size</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkpapersize.html" title="gtk.PaperSize"><code class="classname">gtk.PaperSize</code></a></td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">set_paper_size</code>() method sets the
36
36
      paper size of the page setup without changing the margins. See the
37
37
      <a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--set-paper-size-and-default-margins" title="gtk.PageSetup.set_paper_size_and_default_margins"><code class="methodname">set_paper_size_and_default_margins</code>()</a>
38
 
      method.</p></div><div class="refsect2" lang="en"><a name="method-gtkpagesetup--get-top-margin"></a><h3>gtk.PageSetup.get_top_margin</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_top_margin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>unit</code></strong> :</span></p></td><td>the unit for the return value - one of the
39
 
          <a class="xref" href="gtk-constants.html#gtk-unit-constants" title="GTK Unit Constants">GTK Unit Constants</a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the top margin</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_top_margin</code>() method returns the
40
 
      top margin in units of <em class="parameter"><code>unit</code></em>.</p></div><div class="refsect2" lang="en"><a name="method-gtkpagesetup--set-top-margin"></a><h3>gtk.PageSetup.set_top_margin</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_top_margin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>margin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>margin</code></strong> :</span></p></td><td>the new top margin in units of
 
38
      method.</p></div><div class="refsect2" title="gtk.PageSetup.get_top_margin"><a name="method-gtkpagesetup--get-top-margin"></a><h3>gtk.PageSetup.get_top_margin</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_top_margin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>unit</code></strong> :</span></p></td><td>the unit for the return value - one of the
 
39
          <a class="xref" href="gtk-constants.html#gtk-unit-constants" title="GTK Unit Constants">GTK Unit Constants</a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the top margin</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_top_margin</code>() method returns the
 
40
      top margin in units of <em class="parameter"><code>unit</code></em>.</p></div><div class="refsect2" title="gtk.PageSetup.set_top_margin"><a name="method-gtkpagesetup--set-top-margin"></a><h3>gtk.PageSetup.set_top_margin</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_top_margin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>margin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>margin</code></strong> :</span></p></td><td>the new top margin in units of
41
41
          <em class="parameter"><code>unit</code></em></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>unit</code></strong> :</span></p></td><td>the units for <em class="parameter"><code>margin</code></em> -
42
 
          one of the <a class="xref" href="gtk-constants.html#gtk-unit-constants" title="GTK Unit Constants">GTK Unit Constants</a></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">set_top_margin</code>() method sets the
 
42
          one of the <a class="xref" href="gtk-constants.html#gtk-unit-constants" title="GTK Unit Constants">GTK Unit Constants</a></td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">set_top_margin</code>() method sets the
43
43
      top margin of the page setup to the value specified by
44
44
      <em class="parameter"><code>margin</code></em> in the units specified by
45
 
      <em class="parameter"><code>unit</code></em>.</p></div><div class="refsect2" lang="en"><a name="method-gtkpagesetup--get-bottom-margin"></a><h3>gtk.PageSetup.get_bottom_margin</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_bottom_margin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>unit</code></strong> :</span></p></td><td>the unit for the return
46
 
          value</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the bottom margin</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_bottom_margin</code>() method gets the
47
 
      bottom margin in units of <em class="parameter"><code>unit</code></em>.</p></div><div class="refsect2" lang="en"><a name="method-gtkpagesetup--set-bottom-margin"></a><h3>gtk.PageSetup.set_bottom_margin</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_bottom_margin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>margin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>margin</code></strong> :</span></p></td><td>the new bottom margin in units of
 
45
      <em class="parameter"><code>unit</code></em>.</p></div><div class="refsect2" title="gtk.PageSetup.get_bottom_margin"><a name="method-gtkpagesetup--get-bottom-margin"></a><h3>gtk.PageSetup.get_bottom_margin</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_bottom_margin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>unit</code></strong> :</span></p></td><td>the unit for the return
 
46
          value</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the bottom margin</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_bottom_margin</code>() method gets the
 
47
      bottom margin in units of <em class="parameter"><code>unit</code></em>.</p></div><div class="refsect2" title="gtk.PageSetup.set_bottom_margin"><a name="method-gtkpagesetup--set-bottom-margin"></a><h3>gtk.PageSetup.set_bottom_margin</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_bottom_margin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>margin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>margin</code></strong> :</span></p></td><td>the new bottom margin in units of
48
48
          <em class="parameter"><code>unit</code></em></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>unit</code></strong> :</span></p></td><td>the units for <em class="parameter"><code>margin</code></em> -
49
 
          one of the <a class="xref" href="gtk-constants.html#gtk-unit-constants" title="GTK Unit Constants">GTK Unit Constants</a></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">set_bottom_margin</code>() method sets the
 
49
          one of the <a class="xref" href="gtk-constants.html#gtk-unit-constants" title="GTK Unit Constants">GTK Unit Constants</a></td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">set_bottom_margin</code>() method sets the
50
50
      bottom margin of the page setup to the value specified by
51
51
      <em class="parameter"><code>margin</code></em> using the units specified by
52
 
      <em class="parameter"><code>unit</code></em>.</p></div><div class="refsect2" lang="en"><a name="method-gtkpagesetup--get-left-margin"></a><h3>gtk.PageSetup.get_left_margin</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_left_margin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>unit</code></strong> :</span></p></td><td>the unit for the return
53
 
          value</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the left margin</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_left_margin</code>() method gets the
54
 
      left margin in units of <em class="parameter"><code>unit</code></em>.</p></div><div class="refsect2" lang="en"><a name="method-gtkpagesetup--set-left-margin"></a><h3>gtk.PageSetup.set_left_margin</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_left_margin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>margin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>margin</code></strong> :</span></p></td><td>the new left margin in units of
 
52
      <em class="parameter"><code>unit</code></em>.</p></div><div class="refsect2" title="gtk.PageSetup.get_left_margin"><a name="method-gtkpagesetup--get-left-margin"></a><h3>gtk.PageSetup.get_left_margin</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_left_margin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>unit</code></strong> :</span></p></td><td>the unit for the return
 
53
          value</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the left margin</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_left_margin</code>() method gets the
 
54
      left margin in units of <em class="parameter"><code>unit</code></em>.</p></div><div class="refsect2" title="gtk.PageSetup.set_left_margin"><a name="method-gtkpagesetup--set-left-margin"></a><h3>gtk.PageSetup.set_left_margin</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_left_margin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>margin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>margin</code></strong> :</span></p></td><td>the new left margin in units of
55
55
          <em class="parameter"><code>unit</code></em></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>unit</code></strong> :</span></p></td><td>the units for <em class="parameter"><code>margin</code></em> -
56
 
          one of the <a class="xref" href="gtk-constants.html#gtk-unit-constants" title="GTK Unit Constants">GTK Unit Constants</a></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">set_left_margin</code>() method sets the
 
56
          one of the <a class="xref" href="gtk-constants.html#gtk-unit-constants" title="GTK Unit Constants">GTK Unit Constants</a></td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">set_left_margin</code>() method sets the
57
57
      left margin of the page setup to the value specified by
58
58
      <em class="parameter"><code>margin</code></em> using the units specified by
59
 
      <em class="parameter"><code>unit</code></em>.</p></div><div class="refsect2" lang="en"><a name="method-gtkpagesetup--get-right-margin"></a><h3>gtk.PageSetup.get_right_margin</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_right_margin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>unit</code></strong> :</span></p></td><td><p>the unit for the return value</p> - one
60
 
          of the <a class="xref" href="gtk-constants.html#gtk-unit-constants" title="GTK Unit Constants">GTK Unit Constants</a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the right margin</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_right_margin</code>() method gets the
61
 
      right margin in units of <em class="parameter"><code>unit</code></em>.</p></div><div class="refsect2" lang="en"><a name="method-gtkpagesetup--set-right-margin"></a><h3>gtk.PageSetup.set_right_margin</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_right_margin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>margin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>margin</code></strong> :</span></p></td><td>the new right margin in units of
 
59
      <em class="parameter"><code>unit</code></em>.</p></div><div class="refsect2" title="gtk.PageSetup.get_right_margin"><a name="method-gtkpagesetup--get-right-margin"></a><h3>gtk.PageSetup.get_right_margin</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_right_margin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>unit</code></strong> :</span></p></td><td><p class="simpara">the unit for the return value</p> - one
 
60
          of the <a class="xref" href="gtk-constants.html#gtk-unit-constants" title="GTK Unit Constants">GTK Unit Constants</a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the right margin</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_right_margin</code>() method gets the
 
61
      right margin in units of <em class="parameter"><code>unit</code></em>.</p></div><div class="refsect2" title="gtk.PageSetup.set_right_margin"><a name="method-gtkpagesetup--set-right-margin"></a><h3>gtk.PageSetup.set_right_margin</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_right_margin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>margin</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>margin</code></strong> :</span></p></td><td>the new right margin in units of
62
62
          <em class="parameter"><code>unit</code></em></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>unit</code></strong> :</span></p></td><td>the units for <em class="parameter"><code>margin</code></em> -
63
 
          one of the <a class="xref" href="gtk-constants.html#gtk-unit-constants" title="GTK Unit Constants">GTK Unit Constants</a></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">set_right_margin</code>() method sets the
 
63
          one of the <a class="xref" href="gtk-constants.html#gtk-unit-constants" title="GTK Unit Constants">GTK Unit Constants</a></td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">set_right_margin</code>() method sets the
64
64
      right margin of the page setup to the value specified by
65
65
      <em class="parameter"><code>margin</code></em> using the units specified by
66
 
      <em class="parameter"><code>unit</code></em>.</p></div><div class="refsect2" lang="en"><a name="method-gtkpagesetup--set-paper-size-and-default-margins"></a><h3>gtk.PageSetup.set_paper_size_and_default_margins</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_paper_size_and_default_margins</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>size</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkpapersize.html" title="gtk.PaperSize"><code class="classname">gtk.PaperSize</code></a></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The
 
66
      <em class="parameter"><code>unit</code></em>.</p></div><div class="refsect2" title="gtk.PageSetup.set_paper_size_and_default_margins"><a name="method-gtkpagesetup--set-paper-size-and-default-margins"></a><h3>gtk.PageSetup.set_paper_size_and_default_margins</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_paper_size_and_default_margins</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>size</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkpapersize.html" title="gtk.PaperSize"><code class="classname">gtk.PaperSize</code></a></td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The
67
67
      <code class="methodname">set_paper_size_and_default_margins</code>() method
68
68
      sets the paper size of the page setup to the value specified by
69
69
      <em class="parameter"><code>size</code></em> and modifies the margins according to the
70
 
      new paper size.</p></div><div class="refsect2" lang="en"><a name="method-gtkpagesetup--get-paper-width"></a><h3>gtk.PageSetup.get_paper_width</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_paper_width</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>unit</code></strong> :</span></p></td><td>the unit for the return value - one of the
71
 
          <a class="xref" href="gtk-constants.html#gtk-unit-constants" title="GTK Unit Constants">GTK Unit Constants</a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the paper width.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_paper_width</code>() method returns
 
70
      new paper size.</p></div><div class="refsect2" title="gtk.PageSetup.get_paper_width"><a name="method-gtkpagesetup--get-paper-width"></a><h3>gtk.PageSetup.get_paper_width</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_paper_width</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>unit</code></strong> :</span></p></td><td>the unit for the return value - one of the
 
71
          <a class="xref" href="gtk-constants.html#gtk-unit-constants" title="GTK Unit Constants">GTK Unit Constants</a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the paper width.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_paper_width</code>() method returns
72
72
      the paper width in units of <em class="parameter"><code>unit</code></em>.</p><p>Note that this function takes orientation, but not margins into
73
73
      consideration.  See the <a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--get-page-width" title="gtk.PageSetup.get_page_width"><code class="methodname">get_page_width()</code></a>
74
 
      method.</p></div><div class="refsect2" lang="en"><a name="method-gtkpagesetup--get-paper-height"></a><h3>gtk.PageSetup.get_paper_height</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_paper_height</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>unit</code></strong> :</span></p></td><td>the unit for the return value - one of the
75
 
          <a class="xref" href="gtk-constants.html#gtk-unit-constants" title="GTK Unit Constants">GTK Unit Constants</a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the paper height.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_paper_height</code>() method returns
 
74
      method.</p></div><div class="refsect2" title="gtk.PageSetup.get_paper_height"><a name="method-gtkpagesetup--get-paper-height"></a><h3>gtk.PageSetup.get_paper_height</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_paper_height</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>unit</code></strong> :</span></p></td><td>the unit for the return value - one of the
 
75
          <a class="xref" href="gtk-constants.html#gtk-unit-constants" title="GTK Unit Constants">GTK Unit Constants</a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the paper height.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_paper_height</code>() method returns
76
76
      the paper height in units of <em class="parameter"><code>unit</code></em>.</p><p>Note that this function takes orientation, but not margins into
77
77
      consideration.  See the <a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--get-page-height" title="gtk.PageSetup.get_page_height"><code class="methodname">get_page_height()</code></a>
78
 
      method.</p></div><div class="refsect2" lang="en"><a name="method-gtkpagesetup--get-page-width"></a><h3>gtk.PageSetup.get_page_width</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_page_width</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>unit</code></strong> :</span></p></td><td>the unit for the return value - one of the
79
 
          <a class="xref" href="gtk-constants.html#gtk-unit-constants" title="GTK Unit Constants">GTK Unit Constants</a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the page width.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_page_width</code>() method returns the
 
78
      method.</p></div><div class="refsect2" title="gtk.PageSetup.get_page_width"><a name="method-gtkpagesetup--get-page-width"></a><h3>gtk.PageSetup.get_page_width</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_page_width</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>unit</code></strong> :</span></p></td><td>the unit for the return value - one of the
 
79
          <a class="xref" href="gtk-constants.html#gtk-unit-constants" title="GTK Unit Constants">GTK Unit Constants</a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the page width.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_page_width</code>() method returns the
80
80
      page width in units of <em class="parameter"><code>unit</code></em>.</p><p>Note that this function takes orientation and margins into
81
81
      consideration.  See the <a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--get-paper-width" title="gtk.PageSetup.get_paper_width"><code class="methodname">get_paper_width()</code></a>
82
 
      method.</p></div><div class="refsect2" lang="en"><a name="method-gtkpagesetup--get-page-height"></a><h3>gtk.PageSetup.get_page_height</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_page_height</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>unit</code></strong> :</span></p></td><td>the unit for the return value - one of the
83
 
          <a class="xref" href="gtk-constants.html#gtk-unit-constants" title="GTK Unit Constants">GTK Unit Constants</a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the page height.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_page_height</code>() method returns
 
82
      method.</p></div><div class="refsect2" title="gtk.PageSetup.get_page_height"><a name="method-gtkpagesetup--get-page-height"></a><h3>gtk.PageSetup.get_page_height</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_page_height</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>unit</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>unit</code></strong> :</span></p></td><td>the unit for the return value - one of the
 
83
          <a class="xref" href="gtk-constants.html#gtk-unit-constants" title="GTK Unit Constants">GTK Unit Constants</a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the page height.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.10 and above.</p></div><p>The <code class="methodname">get_page_height</code>() method returns
84
84
      the page height in units of <em class="parameter"><code>unit</code></em>.</p><p>Note that this function takes orientation and margins into
85
85
      consideration.  See the <a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--get-paper-height" title="gtk.PageSetup.get_paper_height"><code class="methodname">get_paper_height()</code></a>
86
 
      method.</p></div><div class="refsect2" lang="en"><a name="method-gtkpagesetup--to-file"></a><h3>gtk.PageSetup.to_file</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">to_file</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>file_name</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>file_name</code></strong> :</span></p></td><td>the file to save to</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>True on success.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.12 and above.</p></div><p>The <code class="methodname">to_file</code>() method
87
 
      saves the information from setup to <em class="parameter"><code>file_name</code></em>.</p></div><div class="refsect2" lang="en"><a name="method-gtkpagesetup--laod-file"></a><h3>gtk.PageSetup.load_file</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">load_file</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>file_name</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>file_name</code></strong> :</span></p></td><td>the filename to read the page setup from.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>True on success.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.14 and above.</p></div><p>
 
86
      method.</p></div><div class="refsect2" title="gtk.PageSetup.to_file"><a name="method-gtkpagesetup--to-file"></a><h3>gtk.PageSetup.to_file</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">to_file</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>file_name</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>file_name</code></strong> :</span></p></td><td>the file to save to</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>True on success.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.12 and above.</p></div><p>The <code class="methodname">to_file</code>() method
 
87
      saves the information from setup to <em class="parameter"><code>file_name</code></em>.</p></div><div class="refsect2" title="gtk.PageSetup.load_file"><a name="method-gtkpagesetup--laod-file"></a><h3>gtk.PageSetup.load_file</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">load_file</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>file_name</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>file_name</code></strong> :</span></p></td><td>the filename to read the page setup from.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>True on success.</td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.14 and above.</p></div><p>
88
88
        The <code class="methodname">load_file</code>() method
89
89
        Reads the page setup from the file file_name. See
90
90
        <code class="methodname"><a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--to-file" title="gtk.PageSetup.to_file">to_file</a></code>.
91
 
      </p></div></div><div class="refsect1" lang="en"><a name="id3610068"></a><h2>Functions</h2><div class="refsect2" lang="en"><a name="function-gtk--print-run-page-setup-dialog"></a><h3>gtk.print_run_page_setup_dialog</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.print_run_page_setup_dialog</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>parent</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>page_setup</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>settings</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>parent</code></strong> :</span></p></td><td>transient parent, or
 
91
      </p></div></div><div class="refsect1" title="Functions"><a name="id3919974"></a><h2>Functions</h2><div class="refsect2" title="gtk.print_run_page_setup_dialog"><a name="function-gtk--print-run-page-setup-dialog"></a><h3>gtk.print_run_page_setup_dialog</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.print_run_page_setup_dialog</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>parent</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>page_setup</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>settings</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>parent</code></strong> :</span></p></td><td>transient parent, or
92
92
          <code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>page_setup</code></strong> :</span></p></td><td>an existing <a class="link" href="class-gtkpagesetup.html" title="gtk.PageSetup"><code class="classname">gtk.PageSetup</code></a>,
93
93
          or <code class="literal">None</code></td></tr><tr><td><p><span class="term"><strong class="parameter"><code>settings</code></strong> :</span></p></td><td>a <a class="link" href="class-gtkprintsettings.html" title="gtk.PrintSettings"><code class="classname">gtk.PrintSettings</code></a></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-gtkpagesetup.html" title="gtk.PageSetup"><code class="classname">gtk.PageSetup</code></a></td></tr></tbody></table><p>Runs a page setup dialog, letting the user modify the values
94
94
      from page_setup. If the user cancels the dialog, the returned <a class="link" href="class-gtkpagesetup.html" title="gtk.PageSetup"><code class="classname">gtk.PageSetup</code></a>
95
95
      is identical to the passed in page_setup, otherwise it contains the
96
96
      modifications done in the dialog.</p><p>Note that this function may use a recursive mainloop to show the
97
 
      page setup dialog.</p></div><div class="refsect2" lang="en"><a name="function-gtk--page-setup-new-from-file"></a><h3>gtk.page_setup_new_from_file</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.page_setup_new_from_file</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>file_name</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>file_name</code></strong> :</span></p></td><td>the filename to read the page setup from.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>The restored <a class="link" href="class-gtkpagesetup.html" title="gtk.PageSetup"><code class="classname">gtk.PageSetup</code></a></td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This function is available in PyGTK 2.12 and above.</p></div><p>Reads the page setup from the file file_name. Returns a new
 
97
      page setup dialog.</p></div><div class="refsect2" title="gtk.page_setup_new_from_file"><a name="function-gtk--page-setup-new-from-file"></a><h3>gtk.page_setup_new_from_file</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.page_setup_new_from_file</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>file_name</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>file_name</code></strong> :</span></p></td><td>the filename to read the page setup from.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>The restored <a class="link" href="class-gtkpagesetup.html" title="gtk.PageSetup"><code class="classname">gtk.PageSetup</code></a></td></tr></tbody></table><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This function is available in PyGTK 2.12 and above.</p></div><p>Reads the page setup from the file file_name. Returns a new
98
98
      <a class="link" href="class-gtkpagesetup.html" title="gtk.PageSetup"><code class="classname">gtk.PageSetup</code></a>
99
99
      object with the restored page setup, or None if an error occurred. See
100
100
      <a class="link" href="class-gtkpagesetup.html#method-gtkpagesetup--to-file" title="gtk.PageSetup.to_file">gtk.PageSetup.to_file</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-gtkoptionmenu.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-gtkpaned.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.OptionMenu </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.Paned</td></tr></table></div></body></html>