[gnome-devel-docs/beginners: 9/12] GTK+ Python tutorial: page on properties, setters and getters
- From: Marta Maria Casetti <mmcasetti src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs/beginners: 9/12] GTK+ Python tutorial: page on properties, setters and getters
- Date: Sat, 9 Mar 2013 21:47:15 +0000 (UTC)
commit cb0ed553d1a8c6a24350ae252bb51a052661f4f7
Author: Marta Maria Casetti <mmcasetti gmail com>
Date: Wed Mar 6 08:42:42 2013 +0000
GTK+ Python tutorial: page on properties, setters and getters
Should be OK.
beginners-docs/C/properties.py.page | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/beginners-docs/C/properties.py.page b/beginners-docs/C/properties.py.page
index 985b878..69cf971 100644
--- a/beginners-docs/C/properties.py.page
+++ b/beginners-docs/C/properties.py.page
@@ -37,15 +37,15 @@
text “Hello World”, an angle of 25 degrees, and aligned to the right, you can
use:</p>
<code>
- label = Gtk.Label(label="Hello World", angle=25, halign=Gtk.Align.END)</code>
+label = Gtk.Label(label="Hello World", angle=25, halign=Gtk.Align.END)</code>
<p>The same result can be obtained with specific methods (called
- <em>setters</em>), specified in the API of the widget:</p>
+ <em>setters</em>), specified in the API reference for the widget:</p>
<code>
- label = Gtk.Label()
- label.set_label("Hello World")
- label.set_angle(25)
- label.set_halign(Gtk.Align.END)</code>
+label = Gtk.Label()
+label.set_label("Hello World")
+label.set_angle(25)
+label.set_halign(Gtk.Align.END)</code>
<p>Once you have created your label, you can get its text with
the <em>getter</em> <code>label.get_label()</code>, and analogously for the
@@ -54,7 +54,7 @@
<p>Instead of using getters and setters you can also get and set the
properties with <code>get_property(<var>"prop-name"</var>)</code> and
<code>set_property(<var>"prop-name"</var>, <var>value</var>)</code>. The
- names of the properties for each widget can be found in the API.</p>
+ names of the properties for each widget can be found in the API reference.</p>
</section>
<section id="references">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]