This file is indexed.

/usr/share/gtk-doc/html/pygtk/class-gtkprintsettings.html is in python-gtk2-doc 2.24.0-5.1ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<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.75.2"><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-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" title="gtk.PrintSettings"><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" title="Synopsis"><a name="id3840726"></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>):
<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><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-resolution-x" title="gtk.PrintSettings.get_resolution_x">get_resolution_x</a></span>(<span class="methodparam"></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-resolution-y" title="gtk.PrintSettings.get_resolution_y">get_resolution_y</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-xy" title="gtk.PrintSettings.set_resolution_xy">set_resolution_xy</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>resolution_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>resolution_y</code></strong></span></span>)</code><br><code class="methodsynopsis">    def <span class="methodname"><a class="link" href="class-gtkprintsettings.html#method-gtkprintsettings--get-printer-lpi" title="gtk.PrintSettings.get_printer_lpi">get_printer_lpi</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-lpi" title="gtk.PrintSettings.set_printer_lpi">set_printer_lpi</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>lpi</code></strong></span></span>)</code><br></pre></td></tr></table><pre class="programlisting">
<span class="bold"><strong>Functions</strong></span>

<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" title="Ancestry"><a name="id3842743"></a><h2>Ancestry</h2><pre class="synopsis">+-- <PYGTKDOCLINK HREF="class-gobject">gobject.GObject</PYGTKDOCLINK>
  +-- <a class="link" href="class-gtkprintsettings.html" title="gtk.PrintSettings">gtk.PrintSettings</a>
</pre></div><div class="refsect1" title="gtk.PrintSettings Signal Prototypes"><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" title="Description"><a name="id3842789"></a><h2>Description</h2><p>A <a class="link" href="class-gtkprintsettings.html" title="gtk.PrintSettings"><code class="classname">gtk.PrintSettings</code></a>
    object represents the settings of a print dialog in a system-independent
    way. The main use for this object is that once you've printed you can
    get a settings object that represents the settings the user chose, and
    the next time you print you can pass that object in so that the user
    doesn't have to re-set all his settings. </p><p>Its also possible to enumerate the settings so that you can easily
    save the settings for the next time your app runs, or even store them in
    a document. The predefined keys try to use shared values as much as
    possible so that moving such a document between systems still
    works.</p><p>Printing support was added in GTK+ 2.10.</p></div><div class="refsect1" title="Constructor"><a name="id3842826"></a><h2>Constructor</h2><div class="refsect2" title="gtk.PrintSettings"><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>
          object</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-gtkprintsettings.html" title="gtk.PrintSettings"><code class="classname">gtk.PrintSettings</code></a>
      object.</p></div></div><div class="refsect1" title="Methods"><a name="id3842912"></a><h2>Methods</h2><div class="refsect2" title="gtk.PrintSettings.copy"><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
          settings</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>Returns a copy of this <a class="link" href="class-gtkprintsettings.html" title="gtk.PrintSettings"><code class="classname">gtk.PrintSettings</code></a>
      object.</p></div><div class="refsect2" title="gtk.PrintSettings.has_key"><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
          <em class="parameter"><code>key</code></em> has a value</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>Returns <code class="literal">True</code>, if a value is associated with
      <em class="parameter"><code>key</code></em>.</p></div><div class="refsect2" title="gtk.PrintSettings.get"><a name="method-gtkprintsettings--get"></a><h3>gtk.PrintSettings.get</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get</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>the string value for
          <em class="parameter"><code>key</code></em></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>Looks up the string value associated with
      <em class="parameter"><code>key</code></em>.</p></div><div class="refsect2" title="gtk.PrintSettings.set"><a name="method-gtkprintsettings--set"></a><h3>gtk.PrintSettings.set</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set</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></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"><strong class="parameter"><code>value</code></strong> :</span></p></td><td>a string value, or
          <code class="literal">None</code></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>Associates <em class="parameter"><code>value</code></em> with
      <em class="parameter"><code>key</code></em>.</p></div><div class="refsect2" title="gtk.PrintSettings.unset"><a name="method-gtkprintsettings--unset"></a><h3>gtk.PrintSettings.unset</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">unset</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></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>Removes any value associated with <em class="parameter"><code>key</code></em>.
      This has the same effect as setting the value to
      <code class="literal">None</code>.</p></div><div class="refsect2" title="gtk.PrintSettings.foreach"><a name="method-gtkprintsettings--foreach"></a><h3>gtk.PrintSettings.foreach</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">foreach</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></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>func</code></strong> :</span></p></td><td>the function to call</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>user_data</code></strong> :</span></p></td><td>user data for
          <em class="parameter"><code>func</code></em></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>Calls <em class="parameter"><code>func</code></em> for each key-value pair.</p><p>The signature of <em class="parameter"><code>func</code></em> is:</p><pre class="programlisting">
  def func(key, value, data):
      </pre><p>where <em class="parameter"><code>key</code></em> and
      <em class="parameter"><code>value</code></em> are the key-value pair and
      <em class="parameter"><code>data</code></em> is
      <em class="parameter"><code>user_data</code></em>.</p></div><div class="refsect2" title="gtk.PrintSettings.get_bool"><a name="method-gtkprintsettings--get-bool"></a><h3>gtk.PrintSettings.get_bool</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_bool</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
          <em class="parameter"><code>key</code></em> maps to a true
          value.</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>Returns the boolean represented by the value that is associated
      with <em class="parameter"><code>key</code></em>. </p></div><div class="refsect2" title="gtk.PrintSettings.set_bool"><a name="method-gtkprintsettings--set-bool"></a><h3>gtk.PrintSettings.set_bool</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_bool</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></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"><strong class="parameter"><code>value</code></strong> :</span></p></td><td>a boolean</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>Sets <em class="parameter"><code>key</code></em> to the boolean value specified
      by <em class="parameter"><code>value</code></em>..</p></div><div class="refsect2" title="gtk.PrintSettings.get_double"><a name="method-gtkprintsettings--get-double"></a><h3>gtk.PrintSettings.get_double</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_double</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>the double value of
          <em class="parameter"><code>key</code></em></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>Returns the double value associated with
      <em class="parameter"><code>key</code></em>, or 0.</p></div><div class="refsect2" title="gtk.PrintSettings.get_double_with_default"><a name="method-gtkprintsettings--get-double-with-default"></a><h3>gtk.PrintSettings.get_double_with_default</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_double_with_default</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></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"><strong class="parameter"><code>def</code></strong> :</span></p></td><td>the default value</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the floating point number associated with
          <em class="parameter"><code>key</code></em></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>Returns the floating point number represented by the value that
      is associated with <em class="parameter"><code>key</code></em>, or
      <em class="parameter"><code>def</code></em> if the value does not represent a floating
      point number.</p></div><div class="refsect2" title="gtk.PrintSettings.set_double"><a name="method-gtkprintsettings--set-double"></a><h3>gtk.PrintSettings.set_double</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_double</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></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"><strong class="parameter"><code>value</code></strong> :</span></p></td><td>a double value</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>Sets <em class="parameter"><code>key</code></em> to the given double
      value.</p></div><div class="refsect2" title="gtk.PrintSettings.get_length"><a name="method-gtkprintsettings--get-length"></a><h3>gtk.PrintSettings.get_length</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_length</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></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"><strong class="parameter"><code>unit</code></strong> :</span></p></td><td>the unit of the return value</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the length value of <em class="parameter"><code>key</code></em>,
          converted to <em class="parameter"><code>unit</code></em></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>Returns the value associated with <em class="parameter"><code>key</code></em>,
      interpreted as a length. The returned value is converted to the units
      specified by <em class="parameter"><code>unit</code></em>.</p></div><div class="refsect2" title="gtk.PrintSettings.set_length"><a name="method-gtkprintsettings--set-length"></a><h3>gtk.PrintSettings.set_length</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_length</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></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"><strong class="parameter"><code>value</code></strong> :</span></p></td><td>a length</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>unit</code></strong> :</span></p></td><td>the unit of
          <em class="parameter"><code>length</code></em></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>Associates a length in units of <em class="parameter"><code>unit</code></em> with
      <em class="parameter"><code>key</code></em>.</p></div><div class="refsect2" title="gtk.PrintSettings.get_int"><a name="method-gtkprintsettings--get-int"></a><h3>gtk.PrintSettings.get_int</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_int</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>the integer value of
          <em class="parameter"><code>key</code></em></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>Returns the integer value of <em class="parameter"><code>key</code></em>, or
      0.</p></div><div class="refsect2" title="gtk.PrintSettings.get_int_with_default"><a name="method-gtkprintsettings--get-int-with-default"></a><h3>gtk.PrintSettings.get_int_with_default</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_int_with_default</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></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"><strong class="parameter"><code>def</code></strong> :</span></p></td><td>the default value</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the integer value of
          <em class="parameter"><code>key</code></em></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>Returns the value of <em class="parameter"><code>key</code></em>, interpreted as
      an integer, or the default value specified by
      <em class="parameter"><code>def</code></em>.</p></div><div class="refsect2" title="gtk.PrintSettings.set_int"><a name="method-gtkprintsettings--set-int"></a><h3>gtk.PrintSettings.set_int</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_int</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></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"><strong class="parameter"><code>value</code></strong> :</span></p></td><td>an integer</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>Sets <em class="parameter"><code>key</code></em> to the given integer
      value.</p></div><div class="refsect2" title="gtk.PrintSettings.get_printer"><a name="method-gtkprintsettings--get-printer"></a><h3>gtk.PrintSettings.get_printer</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_printer</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 printer name</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>Convenience method to obtain the value of the "printer"
      key.</p></div><div class="refsect2" title="gtk.PrintSettings.set_printer"><a name="method-gtkprintsettings--set-printer"></a><h3>gtk.PrintSettings.set_printer</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_printer</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>printer</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>printer</code></strong> :</span></p></td><td>the printer name</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>Convenience function to set the "printer" key the value
      specified by <em class="parameter"><code>printer</code></em>.</p></div><div class="refsect2" title="gtk.PrintSettings.get_orientation"><a name="method-gtkprintsettings--get-orientation"></a><h3>gtk.PrintSettings.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 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>Get the value of the "orientation" key, converted to 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.PrintSettings.set_orientation"><a name="method-gtkprintsettings--set-orientation"></a><h3>gtk.PrintSettings.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>a 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>Sets the value of the "orientation" key to one of the <a class="xref" href="gtk-constants.html#gtk-page-orientation-constants" title="GTK Page Orientation Constants">GTK Page Orientation Constants</a> specified by
      <em class="parameter"><code>orientation</code></em>.</p></div><div class="refsect2" title="gtk.PrintSettings.get_paper_size"><a name="method-gtkprintsettings--get-paper-size"></a><h3>gtk.PrintSettings.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>Gets the value of the "paper-format" key, converted to a <a class="link" href="class-gtkpapersize.html" title="gtk.PaperSize"><code class="classname">gtk.PaperSize</code></a>.</p></div><div class="refsect2" title="gtk.PrintSettings.set_paper_size"><a name="method-gtkprintsettings--set-paper-size"></a><h3>gtk.PrintSettings.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>paper_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>paper_size</code></strong> :</span></p></td><td>a 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>Sets the value of the "paper-format", "paper-width" and
      "paper-height" keys using the <a class="link" href="class-gtkpapersize.html" title="gtk.PaperSize"><code class="classname">gtk.PaperSize</code></a>
      specified by <em class="parameter"><code>paper_size</code></em>.</p></div><div class="refsect2" title="gtk.PrintSettings.get_paper_width"><a name="method-gtkprintsettings--get-paper-width"></a><h3>gtk.PrintSettings.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</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the paper width, in units of
          <em class="parameter"><code>unit</code></em></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>Retuens the value of the "printer-width" key converted to the
      units specified by <em class="parameter"><code>unit</code></em>.</p></div><div class="refsect2" title="gtk.PrintSettings.set_paper_width"><a name="method-gtkprintsettings--set-paper-width"></a><h3>gtk.PrintSettings.set_paper_width</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_paper_width</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></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>width</code></strong> :</span></p></td><td>the paper width</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>unit</code></strong> :</span></p></td><td>the units of <em class="parameter"><code>width</code></em></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>Sets the value of the "printer-width" key using the units
      specified by <em class="parameter"><code>unit</code></em>.</p></div><div class="refsect2" title="gtk.PrintSettings.get_paper_height"><a name="method-gtkprintsettings--get-paper-height"></a><h3>gtk.PrintSettings.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 units for the return
          value</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the paper height, in units of
          <em class="parameter"><code>unit</code></em></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>Gets the value of the "paper-height" key converted to the units
      specified by <em class="parameter"><code>unit</code></em>.</p></div><div class="refsect2" title="gtk.PrintSettings.set_paper_height"><a name="method-gtkprintsettings--set-paper-height"></a><h3>gtk.PrintSettings.set_paper_height</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_paper_height</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></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>height</code></strong> :</span></p></td><td>the paper height</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>unit</code></strong> :</span></p></td><td>the units of
          <em class="parameter"><code>height</code></em></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>Sets the value of the "paper-height" key using the units
      specified by <em class="parameter"><code>unit</code></em>.</p></div><div class="refsect2" title="gtk.PrintSettings.get_use_color"><a name="method-gtkprintsettings--get-use-color"></a><h3>gtk.PrintSettings.get_use_color</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_use_color</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>whether to use color</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>Returns the value of the "use-color" key. If
      <code class="literal">True</code> color will be used when printing.</p></div><div class="refsect2" title="gtk.PrintSettings.set_use_color"><a name="method-gtkprintsettings--set-use-color"></a><h3>gtk.PrintSettings.set_use_color</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_use_color</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>use_color</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>use_color</code></strong> :</span></p></td><td>if <code class="literal">True</code> use
          color</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>Sets the value of the "use-color" key to the value specified by
      <em class="parameter"><code>use_color</code></em>. If <em class="parameter"><code>use_color</code></em>
      is <code class="literal">True</code> color will be used when printing.</p></div><div class="refsect2" title="gtk.PrintSettings.get_collate"><a name="method-gtkprintsettings--get-collate"></a><h3>gtk.PrintSettings.get_collate</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_collate</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><code class="literal">True</code> if the printed pages
          are to be collated</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>Returns the value of the "collate" key.</p></div><div class="refsect2" title="gtk.PrintSettings.set_collate"><a name="method-gtkprintsettings--set-collate"></a><h3>gtk.PrintSettings.set_collate</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_collate</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>collate</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>collate</code></strong> :</span></p></td><td>if <code class="literal">True</code>, collate the
          output</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>Sets the value of the "collate" key. If
      <em class="parameter"><code>collate</code></em> is <code class="literal">True</code> the output
      pages will be collated.</p></div><div class="refsect2" title="gtk.PrintSettings.get_reverse"><a name="method-gtkprintsettings--get-reverse"></a><h3>gtk.PrintSettings.get_reverse</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_reverse</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><code class="literal">True</code> if the order of the
          printed pages shoudl be reversed.</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>Returns the value of the "reverse" key.</p></div><div class="refsect2" title="gtk.PrintSettings.set_reverse"><a name="method-gtkprintsettings--set-reverse"></a><h3>gtk.PrintSettings.set_reverse</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_reverse</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>reverse</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>reverse</code></strong> :</span></p></td><td>if <code class="literal">True</code> reverse the
          output</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>Sets the value of the "reverse" key. If
      <em class="parameter"><code>reverse</code></em> is <code class="literal">True</code> the output
      pages willl be reversed.</p></div><div class="refsect2" title="gtk.PrintSettings.get_duplex"><a name="method-gtkprintsettings--get-duplex"></a><h3>gtk.PrintSettings.get_duplex</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_duplex</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 "duplex" key.</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>Returns the value of the "duplex" key - one of the <a class="xref" href="gtk-constants.html#gtk-print-duplex-constants" title="GTK Print Duplex Constants">GTK Print Duplex Constants</a>.</p></div><div class="refsect2" title="gtk.PrintSettings.set_duplex"><a name="method-gtkprintsettings--set-duplex"></a><h3>gtk.PrintSettings.set_duplex</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_duplex</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>duplex</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>duplex</code></strong> :</span></p></td><td>one of the <a class="xref" href="gtk-constants.html#gtk-print-duplex-constants" title="GTK Print Duplex Constants">GTK Print Duplex 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>Sets the value of the "duplex"
      key. <em class="parameter"><code>duplexp</code></em> must be one of the <a class="xref" href="gtk-constants.html#gtk-print-duplex-constants" title="GTK Print Duplex Constants">GTK Print Duplex Constants</a></p></div><div class="refsect2" title="gtk.PrintSettings.get_quality"><a name="method-gtkprintsettings--get-quality"></a><h3>gtk.PrintSettings.get_quality</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_quality</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 print quality</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>Returns the value of the "quality" key.</p></div><div class="refsect2" title="gtk.PrintSettings.set_quality"><a name="method-gtkprintsettings--set-quality"></a><h3>gtk.PrintSettings.set_quality</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_quality</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>quality</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>quality</code></strong> :</span></p></td><td>one of the <a class="xref" href="gtk-constants.html#gtk-print-quality-constants" title="GTK Print Quality Constants">GTK Print Quality 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>Sets the value of the "quality"
      key. <em class="parameter"><code>quality</code></em> must be one of the <a class="xref" href="gtk-constants.html#gtk-print-quality-constants" title="GTK Print Quality Constants">GTK Print Quality Constants</a>.</p></div><div class="refsect2" title="gtk.PrintSettings.get_n_copies"><a name="method-gtkprintsettings--get-n-copies"></a><h3>gtk.PrintSettings.get_n_copies</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_n_copies</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 number of copies to print</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>Returns the value of the "n-copies" key.</p></div><div class="refsect2" title="gtk.PrintSettings.set_n_copies"><a name="method-gtkprintsettings--set-n-copies"></a><h3>gtk.PrintSettings.set_n_copies</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_n_copies</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>num_copies</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>num_copies</code></strong> :</span></p></td><td>the number of copies</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>Sets the value of the "n-copies" key to the value specified by
      <em class="parameter"><code>num_copies</code></em>.</p></div><div class="refsect2" title="gtk.PrintSettings.get_number_up"><a name="method-gtkprintsettings--get-number-up"></a><h3>gtk.PrintSettings.get_number_up</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_number_up</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 number of pages per sheet</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>Returns the value of the "number-up" key which specifies the
      number of pages per sheet.</p></div><div class="refsect2" title="gtk.PrintSettings.set_number_up"><a name="method-gtkprintsettings--set-number-up"></a><h3>gtk.PrintSettings.set_number_up</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_number_up</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>number_up</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>number_up</code></strong> :</span></p></td><td>the number of pages per sheet</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>Sets the value of the "number-up"
      key. <em class="parameter"><code>number_up</code></em> specifies the number of document
      pages to be printed per sheet.</p></div><div class="refsect2" title="gtk.PrintSettings.get_resolution"><a name="method-gtkprintsettings--get-resolution"></a><h3>gtk.PrintSettings.get_resolution</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_resolution</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 resolution in dpi</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>Returns the value of the "resolution" key in dpi.</p></div><div class="refsect2" title="gtk.PrintSettings.set_resolution"><a name="method-gtkprintsettings--set-resolution"></a><h3>gtk.PrintSettings.set_resolution</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_resolution</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>resolution</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>resolution</code></strong> :</span></p></td><td>the resolution in dpi</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>Sets the value of the "resolution" key in dpi.</p></div><div class="refsect2" title="gtk.PrintSettings.get_scale"><a name="method-gtkprintsettings--get-scale"></a><h3>gtk.PrintSettings.get_scale</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_scale</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 scale in percent</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>Returns the value of the "scale" key as a float number.</p></div><div class="refsect2" title="gtk.PrintSettings.set_scale"><a name="method-gtkprintsettings--set-scale"></a><h3>gtk.PrintSettings.set_scale</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_scale</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>scale</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>scale</code></strong> :</span></p></td><td>the scale in percent</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>Sets the value of the "scale" key using the float number
      specified by <em class="parameter"><code>scale</code></em>.</p></div><div class="refsect2" title="gtk.PrintSettings.get_print_pages"><a name="method-gtkprintsettings--get-print-pages"></a><h3>gtk.PrintSettings.get_print_pages</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_print_pages</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>which pages to print</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>Returns the value of the "print-pages" key as one if the <a class="xref" href="gtk-constants.html#gtk-print-pages-constants" title="GTK Print Pages Constants">GTK Print Pages Constants</a>.</p></div><div class="refsect2" title="gtk.PrintSettings.set_print_pages"><a name="method-gtkprintsettings--set-print-pages"></a><h3>gtk.PrintSettings.set_print_pages</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_print_pages</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>pages</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>pages</code></strong> :</span></p></td><td>one if the <a class="xref" href="gtk-constants.html#gtk-print-pages-constants" title="GTK Print Pages Constants">GTK Print Pages 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>Sets the value of the "print-pages" key to one of the <a class="xref" href="gtk-constants.html#gtk-print-pages-constants" title="GTK Print Pages Constants">GTK Print Pages Constants</a>.</p></div><div class="refsect2" title="gtk.PrintSettings.get_page_ranges"><a name="method-gtkprintsettings--get-page-ranges"></a><h3>gtk.PrintSettings.get_page_ranges</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_page_ranges</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 list of [age ranges as
          2-tuples</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>Returns the value of the "page-ranges" key as a list of
      2-tuples containing the start and end page numbers of each
      range.</p></div><div class="refsect2" title="gtk.PrintSettings.set_page_ranges"><a name="method-gtkprintsettings--set-page-ranges"></a><h3>gtk.PrintSettings.set_page_ranges</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_page_ranges</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></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>page_ranges</code></strong> :</span></p></td><td>a sequence of page range
          2-tuples</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>Sets the value of the "page-ranges" key to the value of
      <em class="parameter"><code>page_ranges</code></em> which should be a sequence of
      2-tuples containing the start and end page numbers of each page
      range.</p></div><div class="refsect2" title="gtk.PrintSettings.get_page_set"><a name="method-gtkprintsettings--get-page-set"></a><h3>gtk.PrintSettings.get_page_set</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_page_set</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 set of pages to print</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>Returns the value of the "page-set" key which is one of the
      <a class="xref" href="gtk-constants.html#gtk-page-set-constants" title="GTK Page Set Constants">GTK Page Set Constants</a>.</p></div><div class="refsect2" title="gtk.PrintSettings.set_page_set"><a name="method-gtkprintsettings--set-page-set"></a><h3>gtk.PrintSettings.set_page_set</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_page_set</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>page_set</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>page_set</code></strong> :</span></p></td><td>one of the <a class="xref" href="gtk-constants.html#gtk-page-set-constants" title="GTK Page Set Constants">GTK Page Set 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>Sets the value of the "page-set" key to the value specified by
      <em class="parameter"><code>page_set</code></em> which should be one of the <a class="xref" href="gtk-constants.html#gtk-page-set-constants" title="GTK Page Set Constants">GTK Page Set Constants</a>.</p></div><div class="refsect2" title="gtk.PrintSettings.get_default_source"><a name="method-gtkprintsettings--get-default-source"></a><h3>gtk.PrintSettings.get_default_source</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_default_source</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 default source</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>Returns the value of the "default-source" key.</p></div><div class="refsect2" title="gtk.PrintSettings.set_default_source"><a name="method-gtkprintsettings--set-default-source"></a><h3>gtk.PrintSettings.set_default_source</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_default_source</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>default_source</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>default_source</code></strong> :</span></p></td><td>the default source</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>Sets the value of the "default-source" key to the string
      specified by <em class="parameter"><code>default_source</code></em>.</p></div><div class="refsect2" title="gtk.PrintSettings.get_media_type"><a name="method-gtkprintsettings--get-media-type"></a><h3>gtk.PrintSettings.get_media_type</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_media_type</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 media type</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>Returns the value of the "media-type" key.</p><p>The set of media types is defined in PWG 5101.1-2002 PWG.</p></div><div class="refsect2" title="gtk.PrintSettings.set_media_type"><a name="method-gtkprintsettings--set-media-type"></a><h3>gtk.PrintSettings.set_media_type</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_media_type</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>media_type</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>media_type</code></strong> :</span></p></td><td>the media type</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>Sets the value of the "media-type" key.</p><p>The set of media types is defined in PWG 5101.1-2002 PWG.</p></div><div class="refsect2" title="gtk.PrintSettings.get_dither"><a name="method-gtkprintsettings--get-dither"></a><h3>gtk.PrintSettings.get_dither</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_dither</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 dithering that is used</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>Returns the value of the "dither" key.</p></div><div class="refsect2" title="gtk.PrintSettings.set_dither"><a name="method-gtkprintsettings--set-dither"></a><h3>gtk.PrintSettings.set_dither</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_dither</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>dither</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>dither</code></strong> :</span></p></td><td>the dithering that is used</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>Sets the value of the "dither" key to the string specified by
      <em class="parameter"><code>dither</code></em>.</p></div><div class="refsect2" title="gtk.PrintSettings.get_finishings"><a name="method-gtkprintsettings--get-finishings"></a><h3>gtk.PrintSettings.get_finishings</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_finishings</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 finishings</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>Returns the value of the "finishings" key.</p></div><div class="refsect2" title="gtk.PrintSettings.set_finishings"><a name="method-gtkprintsettings--set-finishings"></a><h3>gtk.PrintSettings.set_finishings</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_finishings</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>finishings</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>finishings</code></strong> :</span></p></td><td>the finishings</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>Sets the value of the "finishings" key to the string specified
      by <em class="parameter"><code>finishings</code></em>.</p></div><div class="refsect2" title="gtk.PrintSettings.get_output_bin"><a name="method-gtkprintsettings--get-output-bin"></a><h3>gtk.PrintSettings.get_output_bin</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_output_bin</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 output bin</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>Returns the value of the "output-bin" key.</p></div><div class="refsect2" title="gtk.PrintSettings.set_output_bin"><a name="method-gtkprintsettings--set-output-bin"></a><h3>gtk.PrintSettings.set_output_bin</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_output_bin</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>output_bin</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>output_bin</code></strong> :</span></p></td><td>the output bin</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>Sets the value of the "output-bin" key to the value specified by
      <em class="parameter"><code>output_bin</code></em>.</p></div><div class="refsect2" title="gtk.PrintSettings.to_file"><a name="method-gtkprintsettings--to-file"></a><h3>gtk.PrintSettings.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>filename</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><code class="literal">True</code> on sucess.</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>This function saves the print settings from settings to <em class="parameter"><code>file_name</code></em>.</p></div><div class="refsect2" title="gtk.PrintSettings.get_number_up_layout"><a name="method-gtkprintsettings--get-number-up-layout"></a><h3>gtk.PrintSettings.get_number_up_layout</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_number_up_layout</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>layout of page in number-up mode.</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.16 and above.</p></div><p></p></div><div class="refsect2" title="gtk.PrintSettings.set_number_up_layout"><a name="method-gtkprintsettings--set-number-up-layout"></a><h3>gtk.PrintSettings.set_number_up_layout</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_number_up_layout</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>number_up_layout</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>number_up_layout</code></strong> :</span></p></td><td>a
          <code class="methodname"><a class="link" href="gtk-constants.html#gtk-number-up-layout-constants" title="GTK Number Up Layout Constants">GtkNumberUpLayout</a></code>
          constant value.</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.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" title="gtk.PrintSettings.load_file"><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" title="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>
        Reads the print settings from file_name. See
        <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>.
      </p></div><div class="refsect2" title="gtk.PrintSettings.get_resolution_x"><a name="method-gtkprintsettings--get-resolution-x"></a><h3>gtk.PrintSettings.get_resolution_x</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_resolution_x</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 horizontal resolution in dpi.</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.16 and above.</p></div><p>The <code class="methodname">get_resolution_x</code>() method gets the value of
      <code class="literal">gtk.PRINT_SETTINGS_RESOLUTION_X</code>.</p></div><div class="refsect2" title="gtk.PrintSettings.get_resolution_y"><a name="method-gtkprintsettings--get-resolution-y"></a><h3>gtk.PrintSettings.get_resolution_y</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_resolution_y</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 vertical resolution in dpi.</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.16 and above.</p></div><p>The <code class="methodname">get_resolution_y</code>() method gets the value of
      <code class="literal">gtk.PRINT_SETTINGS_RESOLUTION_Y</code>.</p></div><div class="refsect2" title="gtk.PrintSettings.set_resolution_xy"><a name="method-gtkprintsettings--set-resolution-xy"></a><h3>gtk.PrintSettings.set_resolution_xy</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_resolution_xy</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>resolution_x</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>resolution_y</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>resolution_x</code></strong> :</span></p></td><td>the horizontal resolution in dpi.</td></tr><tr><td><p><span class="term"><strong class="parameter"><code>resolution_y</code></strong> :</span></p></td><td>the vertical resolution in dpi.</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.16 and above.</p></div><p>The <code class="methodname">set_resolution_xy</code>() method sets the values of
      <code class="literal">gtk.PRINT_SETTINGS_RESOLUTION</code>, <code class="literal">gtk.PRINT_SETTINGS_RESOLUTION_X</code>
      and <code class="literal">gtk.PRINT_SETTINGS_RESOLUTION_Y</code>.</p></div><div class="refsect2" title="gtk.PrintSettings.get_printer_lpi"><a name="method-gtkprintsettings--get-printer-lpi"></a><h3>gtk.PrintSettings.get_printer_lpi</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">get_printer_lpi</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 resolution in lpi (lines per inch).</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.16 and above.</p></div><p>The <code class="methodname">get_printer_lpi</code>() method gets the value of
      <code class="literal">gtk.PRINT_SETTINGS_PRINTER_LPI</code>.</p></div><div class="refsect2" title="gtk.PrintSettings.set_printer_lpi"><a name="method-gtkprintsettings--set-printer-lpi"></a><h3>gtk.PrintSettings.set_printer_lpi</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">set_printer_lpi</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>lpi</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>lpi</code></strong> :</span></p></td><td>the resolution in lpi (lines per inch).</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.16 and above.</p></div><p>The <code class="methodname">set_printer_lpi</code>() method sets the value of
      <code class="literal">gtk.PRINT_SETTINGS_PRINTER_LPI</code>.</p></div></div><div class="refsect1" title="Functions"><a name="id3849140"></a><h2>Functions</h2><div class="refsect2" title="gtk.print_settings_new_from_file"><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
      <a class="link" href="class-gtkprintsettings.html" title="gtk.PrintSettings"><code class="classname">gtk.PrintSettings</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 print settings from filename. Returns a new
      <a class="link" href="class-gtkprintsettings.html" title="gtk.PrintSettings"><code class="classname">gtk.PrintSettings</code></a>
      object with the restored settings, or <code class="literal">None</code> if an error occurred. See
      <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>().</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-gtkprintoperationpreview.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-gtkprogressbar.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.PrintOperationPreview </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> gtk.ProgressBar</td></tr></table></div></body></html>