[d2b1e2e] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY pygtk-download-http
|
---|
| 8 | "&gnome-download-http;/pygtk/2.24/pygtk-&pygtk-version;.tar.bz2">
|
---|
| 9 | <!ENTITY pygtk-download-ftp
|
---|
| 10 | "&gnome-download-ftp;/pygtk/2.24/pygtk-&pygtk-version;.tar.bz2">
|
---|
| 11 | <!ENTITY pygtk-md5sum "a1051d5794fd7696d3c1af6422d17a49">
|
---|
| 12 | <!ENTITY pygtk-size "2.2 MB">
|
---|
| 13 | <!ENTITY pygtk-buildsize "83 MB">
|
---|
| 14 | <!ENTITY pygtk-time "0.7 SBU">
|
---|
| 15 | ]>
|
---|
| 16 |
|
---|
| 17 | <!-- Begin PyGTK -->
|
---|
| 18 | <sect2 id="pygtk" xreflabel="PyGTK-&pygtk-version;">
|
---|
| 19 |
|
---|
| 20 | <title>PyGTK-&pygtk-version;</title>
|
---|
| 21 |
|
---|
| 22 | <indexterm zone="pygtk">
|
---|
| 23 | <primary sortas="a-PyGTK">PyGTK</primary>
|
---|
| 24 | </indexterm>
|
---|
| 25 |
|
---|
| 26 | <sect3 role="package">
|
---|
| 27 | <title>Introduction to PyGTK Module</title>
|
---|
| 28 |
|
---|
| 29 | <para>
|
---|
| 30 | PyGTK lets you to easily create programs with a graphical user interface
|
---|
| 31 | using the <application>Python</application> programming language.
|
---|
| 32 | </para>
|
---|
| 33 |
|
---|
[519aed4] | 34 | &lfs111_checked;
|
---|
[d2b1e2e] | 35 |
|
---|
| 36 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
| 39 | <para>
|
---|
| 40 | Download (HTTP): <ulink url="&pygtk-download-http;"/>
|
---|
| 41 | </para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&pygtk-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>
|
---|
| 50 | Download MD5 sum: &pygtk-md5sum;
|
---|
| 51 | </para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>
|
---|
| 55 | Download size: &pygtk-size;
|
---|
| 56 | </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
| 60 | Estimated disk space required: &pygtk-buildsize;
|
---|
| 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
| 65 | Estimated build time: &pygtk-time;
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect4">PyGTK Dependencies</bridgehead>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect5">Required</bridgehead>
|
---|
| 73 | <para role="required">
|
---|
[f6ee672] | 74 | <xref linkend="pygobject2"/> and
|
---|
| 75 | <xref linkend="python2"/>
|
---|
[d2b1e2e] | 76 | </para>
|
---|
| 77 |
|
---|
| 78 | <bridgehead renderas="sect5">Required (atk module)</bridgehead>
|
---|
| 79 | <para role="required">
|
---|
| 80 | <xref linkend="atk"/>
|
---|
| 81 | </para>
|
---|
| 82 |
|
---|
| 83 | <bridgehead renderas="sect5">Required (pango module)</bridgehead>
|
---|
| 84 | <para role="required">
|
---|
| 85 | <xref linkend="pango"/>
|
---|
| 86 | </para>
|
---|
| 87 |
|
---|
| 88 | <bridgehead renderas="sect5">Required (pangocairo module)</bridgehead>
|
---|
| 89 | <para role="required">
|
---|
[0c2e5325] | 90 | <xref linkend="pycairo2"/> and
|
---|
[d2b1e2e] | 91 | <xref linkend="pango"/>
|
---|
| 92 | </para>
|
---|
| 93 |
|
---|
| 94 | <bridgehead renderas="sect5">Required (gtk and gtk.unixprint modules)</bridgehead>
|
---|
| 95 | <para role="required">
|
---|
[0c2e5325] | 96 | <xref linkend="pycairo2"/> and
|
---|
[d2b1e2e] | 97 | <xref linkend="gtk2"/>.
|
---|
| 98 | </para>
|
---|
| 99 |
|
---|
| 100 | <bridgehead renderas="sect5">Required (gtk.glade module)</bridgehead>
|
---|
| 101 | <para role="required">
|
---|
[0c2e5325] | 102 | <xref linkend="pycairo2"/> and
|
---|
[d2b1e2e] | 103 | <xref linkend="libglade"/>.
|
---|
| 104 | </para>
|
---|
| 105 |
|
---|
| 106 | <bridgehead renderas="sect5">Optional</bridgehead>
|
---|
| 107 | <para role="optional">
|
---|
[6025c72d] | 108 | <ulink url="http://www.numpy.org/">NumPy</ulink>
|
---|
[d2b1e2e] | 109 | </para>
|
---|
| 110 |
|
---|
| 111 | <bridgehead renderas="sect5">Optional (to Build Documentation)</bridgehead>
|
---|
| 112 | <para role="optional">
|
---|
| 113 | <xref linkend="libxslt"/>
|
---|
| 114 | </para>
|
---|
| 115 |
|
---|
| 116 | <para condition="html" role="usernotes">
|
---|
| 117 | User Notes: <ulink url="&blfs-wiki;/pygtk"/>
|
---|
| 118 | </para>
|
---|
| 119 | </sect3>
|
---|
| 120 |
|
---|
| 121 | <sect3 role="installation">
|
---|
| 122 | <title>Installation of PyGTK</title>
|
---|
| 123 |
|
---|
[f68e46f] | 124 | <para>
|
---|
| 125 | First, adapt PyGTK to changes in Pango by removing undefined
|
---|
| 126 | APIs:
|
---|
| 127 | </para>
|
---|
| 128 |
|
---|
| 129 | <screen><userinput remap="pre">sed -i '1394,1402 d' pango.defs</userinput></screen>
|
---|
| 130 |
|
---|
[d2b1e2e] | 131 | <para>
|
---|
| 132 | Install <application>PyGTK</application> by running the following
|
---|
| 133 | commands:
|
---|
| 134 | </para>
|
---|
| 135 |
|
---|
| 136 | <screen><userinput>./configure --prefix=/usr &&
|
---|
| 137 | make</userinput></screen>
|
---|
| 138 |
|
---|
| 139 | <para>
|
---|
| 140 | The tests must be run from an active X display. If this is so, issue:
|
---|
| 141 | <command>make check</command>.
|
---|
| 142 | </para>
|
---|
| 143 |
|
---|
| 144 | <para>
|
---|
| 145 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 146 | </para>
|
---|
| 147 |
|
---|
| 148 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 149 | </sect3>
|
---|
| 150 |
|
---|
| 151 | <sect3 role="commands">
|
---|
| 152 | <title>Command Explanations</title>
|
---|
| 153 |
|
---|
| 154 | <para>
|
---|
| 155 | <parameter>--enable-docs</parameter>: This option enables rebuilding the
|
---|
| 156 | html documentation if <xref linkend="libxslt"/> is installed.
|
---|
| 157 | </para>
|
---|
| 158 | </sect3>
|
---|
| 159 |
|
---|
| 160 | <sect3 role="content">
|
---|
| 161 | <title>Contents</title>
|
---|
| 162 |
|
---|
| 163 | <segmentedlist>
|
---|
| 164 | <segtitle>Installed Programs</segtitle>
|
---|
| 165 | <segtitle>Installed Libraries</segtitle>
|
---|
| 166 | <segtitle>Installed Directories</segtitle>
|
---|
| 167 |
|
---|
| 168 | <seglistitem>
|
---|
| 169 | <seg>pygtk-codegen-2.0 and pygtk-demo.</seg>
|
---|
| 170 | <seg>
|
---|
| 171 | atk.so,
|
---|
| 172 | _gtk.so,
|
---|
| 173 | glade.so,
|
---|
| 174 | gtkunixprint.so,
|
---|
| 175 | pango.so and
|
---|
| 176 | pangocairo.so.
|
---|
| 177 | </seg>
|
---|
| 178 | <seg>
|
---|
| 179 | /usr/include/pygtk-2.0,
|
---|
| 180 | /usr/lib/pygtk,
|
---|
| 181 | /usr/lib/python&python2-majorver;/site-packages/gtk-2.0,
|
---|
| 182 | /usr/share/gtk-doc/html/pygtk and
|
---|
| 183 | /usr/share/pygtk.
|
---|
| 184 | </seg>
|
---|
| 185 | </seglistitem>
|
---|
| 186 | </segmentedlist>
|
---|
| 187 |
|
---|
| 188 | <variablelist>
|
---|
| 189 | <bridgehead renderas="sect4">Short Descriptions</bridgehead>
|
---|
| 190 | <?dbfo list-presentation="list"?>
|
---|
| 191 | <?dbhtml list-presentation="table"?>
|
---|
| 192 |
|
---|
| 193 | <varlistentry id="pygtk-codegen-2.0">
|
---|
| 194 | <term><command>pygtk-codegen-2.0</command></term>
|
---|
| 195 | <listitem>
|
---|
| 196 | <para>
|
---|
| 197 | is a wrapper script to run the <application>PyGTK</application>
|
---|
[4c24eb0a] | 198 | codegen module
|
---|
[d2b1e2e] | 199 | </para>
|
---|
| 200 | <indexterm zone="pygtk pygtk-codegen-2.0">
|
---|
| 201 | <primary sortas="b-pygtk-codegen-2.0">pygtk-codegen-2.0</primary>
|
---|
| 202 | </indexterm>
|
---|
| 203 | </listitem>
|
---|
| 204 | </varlistentry>
|
---|
| 205 |
|
---|
| 206 | <varlistentry id="pygtk-demo">
|
---|
| 207 | <term><command>pygtk-demo</command></term>
|
---|
| 208 | <listitem>
|
---|
| 209 | <para>
|
---|
| 210 | is a Python wrapper to run the <application>PyGTK</application>
|
---|
[4c24eb0a] | 211 | demo program
|
---|
[d2b1e2e] | 212 | </para>
|
---|
| 213 | <indexterm zone="pygtk pygtk-demo">
|
---|
| 214 | <primary sortas="b-pygtk-demo">pygtk-demo</primary>
|
---|
| 215 | </indexterm>
|
---|
| 216 | </listitem>
|
---|
| 217 | </varlistentry>
|
---|
| 218 | </variablelist>
|
---|
| 219 | </sect3>
|
---|
[4c24eb0a] | 220 |
|
---|
[d2b1e2e] | 221 | </sect2>
|
---|