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

« back to all changes in this revision

Viewing changes to docs/html/class-gtkprintsettings.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
 
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gtk.PrintSettings</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-gtkprintoperationpreview.html" title="gtk.PrintOperationPreview"><link rel="next" href="class-gtkprogressbar.html" title="gtk.ProgressBar"></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.PrintSettings</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkprintoperationpreview.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkprogressbar.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkprintsettings"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.PrintSettings</h2><p>gtk.PrintSettings — Stores print settings (new in PyGTK 2.10)</p></div><div class="refsect1" lang="en"><a name="id3601470"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.PrintSettings</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.PrintSettings</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-gtkprintoperationpreview.html" title="gtk.PrintOperationPreview"><link rel="next" href="class-gtkprogressbar.html" title="gtk.ProgressBar"></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.PrintSettings</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkprintoperationpreview.html">Prev</a> </td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-gtkprogressbar.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkprintsettings"></a><div class="titlepage"></div><div class="refnamediv"><h2>gtk.PrintSettings</h2><p>gtk.PrintSettings — Stores print settings (new in PyGTK 2.10)</p></div><div class="refsect1" lang="en"><a name="id3802276"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.PrintSettings</span></span>(<span class="ooclass"><span class="classname"><PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK></span></span>):
2
2
<code class="constructorsynopsis">    <span class="methodname"><a class="link" href="class-gtkprintsettings.html#constructor-gtkprintsettings" title="gtk.PrintSettings">gtk.PrintSettings</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--copy" title="gtk.PrintSettings.copy">copy</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--has-key" title="gtk.PrintSettings.has_key">has_key</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>key</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get" title="gtk.PrintSettings.get">get</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>key</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set" title="gtk.PrintSettings.set">set</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>key</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>value</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--unset" title="gtk.PrintSettings.unset">unset</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>key</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--foreach" title="gtk.PrintSettings.foreach">foreach</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>func</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>user_data</code></strong></span><span class="initializer">=None</span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-bool" title="gtk.PrintSettings.get_bool">get_bool</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>key</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-bool" title="gtk.PrintSettings.set_bool">set_bool</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>key</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>value</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-double" title="gtk.PrintSettings.get_double">get_double</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>key</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-double-with-default" title="gtk.PrintSettings.get_double_with_default">get_double_with_default</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>key</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>def</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-double" title="gtk.PrintSettings.set_double">set_double</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>key</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>value</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-length" title="gtk.PrintSettings.get_length">get_length</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>key</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-gtkprintsettings.html#method-gtkprintsettings--set-length" title="gtk.PrintSettings.set_length">set_length</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>key</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>value</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-gtkprintsettings.html#method-gtkprintsettings--get-int" title="gtk.PrintSettings.get_int">get_int</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>key</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-int-with-default" title="gtk.PrintSettings.get_int_with_default">get_int_with_default</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>key</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>def</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-int" title="gtk.PrintSettings.set_int">set_int</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>key</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>value</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-printer" title="gtk.PrintSettings.get_printer">get_printer</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-printer" title="gtk.PrintSettings.set_printer">set_printer</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>printer</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-orientation" title="gtk.PrintSettings.get_orientation">get_orientation</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-orientation" title="gtk.PrintSettings.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-gtkprintsettings.html#method-gtkprintsettings--get-paper-size" title="gtk.PrintSettings.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-gtkprintsettings.html#method-gtkprintsettings--set-paper-size" title="gtk.PrintSettings.set_paper_size">set_paper_size</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>paper_size</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-paper-width" title="gtk.PrintSettings.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-gtkprintsettings.html#method-gtkprintsettings--set-paper-width" title="gtk.PrintSettings.set_paper_width">set_paper_width</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>width</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-gtkprintsettings.html#method-gtkprintsettings--get-paper-height" title="gtk.PrintSettings.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-gtkprintsettings.html#method-gtkprintsettings--set-paper-height" title="gtk.PrintSettings.set_paper_height">set_paper_height</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>height</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-gtkprintsettings.html#method-gtkprintsettings--get-use-color" title="gtk.PrintSettings.get_use_color">get_use_color</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-use-color" title="gtk.PrintSettings.set_use_color">set_use_color</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>use_color</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-collate" title="gtk.PrintSettings.get_collate">get_collate</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-collate" title="gtk.PrintSettings.set_collate">set_collate</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>collate</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-reverse" title="gtk.PrintSettings.get_reverse">get_reverse</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-reverse" title="gtk.PrintSettings.set_reverse">set_reverse</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>reverse</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-duplex" title="gtk.PrintSettings.get_duplex">get_duplex</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-duplex" title="gtk.PrintSettings.set_duplex">set_duplex</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>duplex</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-quality" title="gtk.PrintSettings.get_quality">get_quality</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-quality" title="gtk.PrintSettings.set_quality">set_quality</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>quality</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-n-copies" title="gtk.PrintSettings.get_n_copies">get_n_copies</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-n-copies" title="gtk.PrintSettings.set_n_copies">set_n_copies</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>num_copies</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-number-up" title="gtk.PrintSettings.get_number_up">get_number_up</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-number-up" title="gtk.PrintSettings.set_number_up">set_number_up</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>number_up</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-resolution" title="gtk.PrintSettings.get_resolution">get_resolution</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-resolution" title="gtk.PrintSettings.set_resolution">set_resolution</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>resolution</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-scale" title="gtk.PrintSettings.get_scale">get_scale</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-scale" title="gtk.PrintSettings.set_scale">set_scale</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>scale</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-print-pages" title="gtk.PrintSettings.get_print_pages">get_print_pages</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-print-pages" title="gtk.PrintSettings.set_print_pages">set_print_pages</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pages</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-page-ranges" title="gtk.PrintSettings.get_page_ranges">get_page_ranges</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>num_ranges</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-page-ranges" title="gtk.PrintSettings.set_page_ranges">set_page_ranges</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>page_ranges</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>num_ranges</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-page-set" title="gtk.PrintSettings.get_page_set">get_page_set</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-page-set" title="gtk.PrintSettings.set_page_set">set_page_set</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>page_set</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-default-source" title="gtk.PrintSettings.get_default_source">get_default_source</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-default-source" title="gtk.PrintSettings.set_default_source">set_default_source</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>default_source</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-media-type" title="gtk.PrintSettings.get_media_type">get_media_type</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-media-type" title="gtk.PrintSettings.set_media_type">set_media_type</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>media_type</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-dither" title="gtk.PrintSettings.get_dither">get_dither</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-dither" title="gtk.PrintSettings.set_dither">set_dither</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>dither</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-finishings" title="gtk.PrintSettings.get_finishings">get_finishings</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-finishings" title="gtk.PrintSettings.set_finishings">set_finishings</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>finishings</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-output-bin" title="gtk.PrintSettings.get_output_bin">get_output_bin</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-output-bin" title="gtk.PrintSettings.set_output_bin">set_output_bin</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>output_bin</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--to-file" title="gtk.PrintSettings.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"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-number-up-layout" title="gtk.PrintSettings.get_number_up_layout">get_number_up_layout</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--set-number-up-layout" title="gtk.PrintSettings.set_number_up_layout">set_number_up_layout</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>number_up_layout</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--load-file" title="gtk.PrintSettings.load_file">load_file</a></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">
3
3
<span class="bold"><strong>Functions</strong></span>
4
4
 
5
 
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#function-gtk--print-settings-new-from-file" title="gtk.print_settings_new_from_file">gtk.print_settings_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="id3603356"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
 
5
<code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#function-gtk--print-settings-new-from-file" title="gtk.print_settings_new_from_file">gtk.print_settings_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="id3804161"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
6
6
  +-- <a class="link" href="class-gtkprintsettings.html" title="gtk.PrintSettings">gtk.PrintSettings</a>
7
 
</pre></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtkprintsettings"></a><h2>gtk.PrintSettings Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p></div><div class="refsect1" lang="en"><a name="id3603401"></a><h2>Description</h2><p>A <a class="link" href="class-gtkprintsettings.html" title="gtk.PrintSettings"><code class="classname">gtk.PrintSettings</code></a>
 
7
</pre></div><div class="refsect1" lang="en"><a name="signal-prototypes-gtkprintsettings"></a><h2>gtk.PrintSettings Signal Prototypes</h2><p><PYGTKDOCLINK HREF="signal-prototypes-gobject">gobject.GObject Signal Prototypes</PYGTKDOCLINK></p></div><div class="refsect1" lang="en"><a name="id3804207"></a><h2>Description</h2><p>A <a class="link" href="class-gtkprintsettings.html" title="gtk.PrintSettings"><code class="classname">gtk.PrintSettings</code></a>
8
8
    object represents the settings of a print dialog in a system-independent
9
9
    way. The main use for this object is that once you've printed you can
10
10
    get a settings object that represents the settings the user chose, and
13
13
    save the settings for the next time your app runs, or even store them in
14
14
    a document. The predefined keys try to use shared values as much as
15
15
    possible so that moving such a document between systems still
16
 
    works.</p><p>Printing support was added in GTK+ 2.10.</p></div><div class="refsect1" lang="en"><a name="id3603438"></a><h2>Constructor</h2><div class="refsect2" lang="en"><a name="constructor-gtkprintsettings"></a><h3>gtk.PrintSettings</h3><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtk.PrintSettings</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-gtkprintsettings.html" title="gtk.PrintSettings"><code class="classname">gtk.PrintSettings</code></a>
 
16
    works.</p><p>Printing support was added in GTK+ 2.10.</p></div><div class="refsect1" lang="en"><a name="id3804244"></a><h2>Constructor</h2><div class="refsect2" lang="en"><a name="constructor-gtkprintsettings"></a><h3>gtk.PrintSettings</h3><pre class="programlisting"><code class="constructorsynopsis">    <span class="methodname">gtk.PrintSettings</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-gtkprintsettings.html" title="gtk.PrintSettings"><code class="classname">gtk.PrintSettings</code></a>
17
17
          object</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-gtkprintsettings.html" title="gtk.PrintSettings"><code class="classname">gtk.PrintSettings</code></a>
18
 
      object.</p></div></div><div class="refsect1" lang="en"><a name="id3603524"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkprintsettings--copy"></a><h3>gtk.PrintSettings.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 newly allocated copy of the print
 
18
      object.</p></div></div><div class="refsect1" lang="en"><a name="id3804330"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-gtkprintsettings--copy"></a><h3>gtk.PrintSettings.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 newly allocated copy of the print
19
19
          settings</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>Returns a copy of this <a class="link" href="class-gtkprintsettings.html" title="gtk.PrintSettings"><code class="classname">gtk.PrintSettings</code></a>
20
20
      object.</p></div><div class="refsect2" lang="en"><a name="method-gtkprintsettings--has-key"></a><h3>gtk.PrintSettings.has_key</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">has_key</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>key</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>key</code></strong> :</span></p></td><td>a key</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code>, if
21
21
          <em class="parameter"><code>key</code></em> has a value</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>Returns <code class="literal">True</code>, if a value is associated with
104
104
          constant value.</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.16 and above.</p></div><p>Sets the value of <a class="link" href="gtk-constants.html#gtk-number-up-layout-constants" title="GTK Number Up Layout Constants">GtkNumberUpLayout</a>.</p></div><div class="refsect2" lang="en"><a name="method-gtkprintsettings--load-file"></a><h3>gtk.PrintSettings.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 settings from.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> 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.16 and above.</p></div><p>
105
105
        Reads the print settings from file_name. See
106
106
        <code class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--to-file" title="gtk.PrintSettings.to_file">gtk.PrintSettings.to_file</a></code>.
107
 
      </p></div></div><div class="refsect1" lang="en"><a name="id3609309"></a><h2>Functions</h2><div class="refsect2" lang="en"><a name="function-gtk--print-settings-new-from-file"></a><h3>gtk.print_settings_new_from_file</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.print_settings_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 settings from.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the restored
 
107
      </p></div></div><div class="refsect1" lang="en"><a name="id3810115"></a><h2>Functions</h2><div class="refsect2" lang="en"><a name="function-gtk--print-settings-new-from-file"></a><h3>gtk.print_settings_new_from_file</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">gtk.print_settings_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 settings from.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the restored
108
108
      <a class="link" href="class-gtkprintsettings.html" title="gtk.PrintSettings"><code class="classname">gtk.PrintSettings</code></a>
109
109
      </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 print settings from filename. Returns a new
110
110
      <a class="link" href="class-gtkprintsettings.html" title="gtk.PrintSettings"><code class="classname">gtk.PrintSettings</code></a>