[gnome-devel-docs] tutorials python: added link to properties tutorial in label, button, window and radiobutton pages



commit 79bba6f7644e4fc5b7ee61bf5508a3b1bb9cfaba
Author: Marta Maria Casetti <mmcasetti gmail com>
Date:   Sun Jun 24 18:11:47 2012 +0100

    tutorials python: added link to properties tutorial in label, button, window and radiobutton pages

 platform-demos/C/button.py.page      |    1 +
 platform-demos/C/label.py.page       |    2 +-
 platform-demos/C/radiobutton.py.page |    1 +
 platform-demos/C/window.py.page      |    4 ++--
 4 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/platform-demos/C/button.py.page b/platform-demos/C/button.py.page
index a3efa41..462ff93 100644
--- a/platform-demos/C/button.py.page
+++ b/platform-demos/C/button.py.page
@@ -29,6 +29,7 @@
   <section id="methods">
     <title>Useful methods for a Button widget</title>
     <p>For an explanation of signals and callback functions, see <link xref="signals-callbacks.py">this page</link>.</p>
+    <p><code>button = Gtk.Button(label="Click me")</code> could also be used create a button and set the text directly. For a general discussion of this, see <link xref="properties.py">here</link>.</p>
     <list>
       <item><p><code>set_relief(Gtk.ReliefStyle.NONE)</code> sets to none the relief style of the edges of the Gtk.Button - as opposed to <code>Gtk.ReliefStyle.NORMAL</code>.</p></item>
       <item><p>If the label of the button is a <link href="http://developer.gnome.org/gtk3/3.4/gtk3-Stock-Items.html";>stock icon</link>, <code>set_use_stock(True)</code> sets the label as the name of the corresponding stock icon.</p></item>
diff --git a/platform-demos/C/label.py.page b/platform-demos/C/label.py.page
index 1c9868a..c2764e4 100644
--- a/platform-demos/C/label.py.page
+++ b/platform-demos/C/label.py.page
@@ -66,8 +66,8 @@ class MyApplication(Gtk.Application):
   <section id="methods">
   <title>Useful methods for a Label widget</title>
   <p>An explanation of how to deal with strings and Unicode (and a recap of what these things are) can be found <link xref="strings.py.page">here</link>.</p>
+  <p><code>label = Gtk.Label(label="Hello GNOME!")</code> could also be used create a label and set the text directly. For a general discussion of this, see <link xref="properties.py">here</link>.</p>
   <list>
-    <item><p><code>label = Gtk.Label("Hello GNOME!")</code> could also be used create a label and set the text directly.</p></item>
     <item><p><code>set_line_wrap(True)</code> breaks lines if the text of the label exceeds the size of the widget.</p></item>
     <item><p><code>set_justify(Gtk.Justification.LEFT)</code> (or <code>Gtk.Justification.RIGHT, Gtk.Justification.CENTER, Gtk.Justification.FILL</code>) sets the alignment of the lines in the text of the label relative to each other. The method has no effect on a single-line label.</p></item>
     <item><p>For decorated text we can use <code>set_markup("text")</code>, where <code>"text"</code> is a text in the <link href="http://developer.gnome.org/pango/stable/PangoMarkupFormat.html";>Pango Markup Language</link>. An example:</p>
diff --git a/platform-demos/C/radiobutton.py.page b/platform-demos/C/radiobutton.py.page
index 436824c..f63a9be 100644
--- a/platform-demos/C/radiobutton.py.page
+++ b/platform-demos/C/radiobutton.py.page
@@ -37,6 +37,7 @@
     <code>
 button1 = Gtk.RadioButton()
 button1.set_label("Button 1").</code>
+    <p>For a general discussion of this, see <link xref="properties.py">here</link>.</p>
     <p>On the other hand, we cannot create the button as <code>button1.new_with_label("Button 1")</code> - it gives a segmentation error.</p>
   </section>
 
diff --git a/platform-demos/C/window.py.page b/platform-demos/C/window.py.page
index d928f2e..9159b0a 100644
--- a/platform-demos/C/window.py.page
+++ b/platform-demos/C/window.py.page
@@ -46,10 +46,10 @@
 
   <section id="methods">
   <title>Useful methods for a Window widget</title>
+  <p><code>window = Gtk.Window(application=self, title="Welcome to GNOME")</code> sets the title as well, without the need for the line <code>window.set_title("Welcome to GNOME")</code>. For a general discussion of this, see <link xref="properties.py">here</link>.</p>
   <list>
-    <item><p><code>window = Gtk.Window(application=self, title="Welcome to GNOME")</code> sets the title as well, without the need for the line <code>window.set_title("Welcome to GNOME")</code>.</p></item>
     <item><p><code>set_default_size(200, 100)</code> sets the default size of the window to a width of <code>200</code> and a height of <code>100</code>; if instead of a positive number we pass <code>-1</code> we have the default size.</p></item>
-    <item><p><code>set_position(Gtk.WindowPosition.CENTER)</code> centers the window. Other options are described in the <link href="http://developer.gnome.org/gtk3/3.4/gtk3-Standard-Enumerations.html#GtkWindowPosition";>standard enumerations</link> (with the caveat that they should be changed on the model of Gtk.WindowPosition.CENTER).</p></item>
+    <item><p><code>set_position(Gtk.WindowPosition.CENTER)</code> centers the window. Other options are <code>Gtk.WindowPosition.NONE, Gtk.WindowPosition.MOUSE, Gtk.WindowPosition.CENTER_ALWAYS, Gtk.WindowPosition.CENTER_ON_PARENT</code>.</p></item>
   </list>
   </section>
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]