[gnome-devel-docs] tutorials python: new pages for combobox (simple and multicolumn)
- From: Tiffany Antopolski <antopolski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] tutorials python: new pages for combobox (simple and multicolumn)
- Date: Tue, 17 Jul 2012 17:41:09 +0000 (UTC)
commit 3d35f7e395f702975d05581311579b2198688ea3
Author: Marta Maria Casetti <mmcasetti gmail com>
Date: Wed Jul 11 14:38:38 2012 +0100
tutorials python: new pages for combobox (simple and multicolumn)
platform-demos/C/combobox.py.page | 34 +++++++++++++++-------
platform-demos/C/combobox_multicolumn.py.page | 38 +++++++++++++++++--------
2 files changed, 49 insertions(+), 23 deletions(-)
---
diff --git a/platform-demos/C/combobox.py.page b/platform-demos/C/combobox.py.page
index 951b1cc..13aa613 100644
--- a/platform-demos/C/combobox.py.page
+++ b/platform-demos/C/combobox.py.page
@@ -20,15 +20,27 @@
<media type="image" mime="image/png" src="media/combobox.png"/>
<p>This ComboBox prints to the terminal your selection when you change it.</p>
-<code mime="text/x-python" style="numbered"><xi:include href="samples/combobox.py" parse="text"><xi:fallback/></xi:include></code>
-<p>
- In this sample we used the following:
-</p>
-<list>
- <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkComboBox.html">GtkComboBox</link></p></item>
- <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkListStore.html">GtkListStore</link></p></item>
- <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkCellRendererText.html">GtkCellRendererText</link></p></item>
- <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkCellLayout.html">GtkCellLayout</link></p></item>
- <item><p><link href="http://git.gnome.org/browse/pygobject/tree/gi/overrides/Gtk.py">pygobject - Python bindings for GObject Introspection</link></p></item>
-</list>
+ <links type="section" />
+
+ <section id="code">
+ <title>Code used to generate this example</title>
+ <code mime="text/x-python" style="numbered"><xi:include href="samples/combobox.py" parse="text"><xi:fallback/></xi:include></code>
+ </section>
+
+ <section id="methods">
+ <title>Useful methods for a ComboBox widget</title>
+ <p>The ComboBox widget is designed around a <em>Model/View/Controller</em> design. For more information, and for a list of useful methods for ComboBox and TreeModel, see <link xref="model-view-controller.py">here</link>.</p>
+ </section>
+
+ <section id="references">
+ <title>API References</title>
+ <p>In this sample we used the following:</p>
+ <list>
+ <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkComboBox.html">GtkComboBox</link></p></item>
+ <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkListStore.html">GtkListStore</link></p></item>
+ <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkCellRendererText.html">GtkCellRendererText</link></p></item>
+ <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkCellLayout.html">GtkCellLayout</link></p></item>
+ <item><p><link href="http://git.gnome.org/browse/pygobject/tree/gi/overrides/Gtk.py">pygobject - Python bindings for GObject Introspection</link></p></item>
+ </list>
+ </section>
</page>
diff --git a/platform-demos/C/combobox_multicolumn.py.page b/platform-demos/C/combobox_multicolumn.py.page
index 551a5bf..9bd6e37 100644
--- a/platform-demos/C/combobox_multicolumn.py.page
+++ b/platform-demos/C/combobox_multicolumn.py.page
@@ -21,16 +21,30 @@
<media type="image" mime="image/png" src="media/combobox_multicolumn.png"/>
<p>This ComboBox prints to the terminal your selection when you change it.</p>
-<code mime="text/x-python" style="numbered"><xi:include href="samples/combobox_multicolumn.py" parse="text"><xi:fallback/></xi:include></code>
-<p>
- In this sample we used the following:
-</p>
-<list>
- <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkComboBox.html">GtkComboBox</link></p></item>
- <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkListStore.html">GtkListStore</link></p></item>
- <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkCellRendererText.html">GtkCellRendererText</link></p></item>
- <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkCellRendererPixbuf.html">GtkCellRendererPixbuf</link></p></item>
- <item><p><link href="http://developer.gnome.org/gtk3/3.4/gtk3-Stock-Items.html">Stock Items</link></p></item>
- <item><p><link href="http://git.gnome.org/browse/pygobject/tree/gi/overrides/Gtk.py">pygobject - Python bindings for GObject Introspection</link></p></item>
-</list>
+ <links type="section" />
+
+ <section id="code">
+ <title>Code used to generate this example</title>
+ <code mime="text/x-python" style="numbered"><xi:include href="samples/combobox_multicolumn.py" parse="text"><xi:fallback/></xi:include></code>
+
+ </section>
+
+ <section id="methods">
+ <title>Useful methods for a ComboBox widget</title>
+ <p>The ComboBox widget is designed around a <em>Model/View/Controller</em> design. For more information, and for a list of useful methods for ComboBox and TreeModel, see <link xref="model-view-controller.py">here</link>.</p>
+
+ </section>
+
+ <section id="references">
+ <title>API References</title>
+ <p>In this sample we used the following:</p>
+ <list>
+ <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkComboBox.html">GtkComboBox</link></p></item>
+ <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkListStore.html">GtkListStore</link></p></item>
+ <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkCellRendererText.html">GtkCellRendererText</link></p></item>
+ <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkCellRendererPixbuf.html">GtkCellRendererPixbuf</link></p></item>
+ <item><p><link href="http://developer.gnome.org/gtk3/3.4/gtk3-Stock-Items.html">Stock Items</link></p></item>
+ <item><p><link href="http://git.gnome.org/browse/pygobject/tree/gi/overrides/Gtk.py">pygobject - Python bindings for GObject Introspection</link></p></item>
+ </list>
+ </section>
</page>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]