source: general/prog/python-modules/pygtk.xml@ 85b49c6

lazarus trunk
Last change on this file since 85b49c6 was b335a90, checked in by Bruce Dubbs <bdubbs@…>, 3 months ago

Tag all remaining python pages.

  • Property mode set to 100644
File size: 6.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 <!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
33 &lfs121_checked;
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">
73 <xref linkend="pygobject2"/> and
74 <xref linkend="python2"/>
75 </para>
76
77 <bridgehead renderas="sect5">Required (atk module)</bridgehead>
78 <para role="required">
79 <xref linkend="at-spi2-core"/>
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">
89 <xref linkend="pycairo2"/> and
90 <xref linkend="pango"/>
91 </para>
92
93 <bridgehead renderas="sect5">Required (gtk and gtk.unixprint modules)</bridgehead>
94 <para role="required">
95 <xref linkend="pycairo2"/> and
96 <xref linkend="gtk2"/>
97 </para>
98
99 <bridgehead renderas="sect5">Required (gtk.glade module)</bridgehead>
100 <para role="required">
101 <xref linkend="pycairo2"/> and
102 <xref linkend="libglade"/>
103 </para>
104
105 <bridgehead renderas="sect5">Optional</bridgehead>
106 <para role="optional">
107 <xref linkend="numpy"/>
108 <!--<ulink url="https://www.numpy.org/">NumPy</ulink>-->
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
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
128 <para>
129 Install <application>PyGTK</application> by running the following
130 commands:
131 </para>
132
133<screen><userinput>./configure --prefix=/usr &amp;&amp;
134make</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>
195 codegen module
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>
208 demo program
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>
217
218 </sect2>
Note: See TracBrowser for help on using the repository browser.