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