[gnome-devel-docs] tutorials python: corrected error in radiobutton page
- From: Marta Maria Casetti <mmcasetti src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] tutorials python: corrected error in radiobutton page
- Date: Sat, 4 Aug 2012 09:49:44 +0000 (UTC)
commit 16136d50506536eec777db7a5ceb573f7faec2c7
Author: Marta Maria Casetti <mmcasetti gmail com>
Date: Thu Aug 2 03:25:00 2012 +0100
tutorials python: corrected error in radiobutton page
platform-demos/C/radiobutton.py.page | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/platform-demos/C/radiobutton.py.page b/platform-demos/C/radiobutton.py.page
index 109e2d5..0a019e7 100644
--- a/platform-demos/C/radiobutton.py.page
+++ b/platform-demos/C/radiobutton.py.page
@@ -40,16 +40,16 @@
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>
+ <p>Yet another way to create a new RadioButton with a label is <code>button1 = Gtk.RadioButton.new_with_label(None, "Button 1")</code> (the first arguement is the group of the radiobuttons, which we can get with <code>get_group()</code>, the second argument is the label).</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/GtkWindow.html">GtkWindow</link></p></item>
- <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkGrid.html">GtkGrid</link></p></item>
- <item><p><link href="http://developer.gnome.org/gtk3/3.4/GtkRadioButton.html">GtkRadioButton</link></p></item>
+ <item><p><link href="http://developer.gnome.org/gtk3/unstable/GtkWindow.html">GtkWindow</link></p></item>
+ <item><p><link href="http://developer.gnome.org/gtk3/unstable/GtkGrid.html">GtkGrid</link></p></item>
+ <item><p><link href="http://developer.gnome.org/gtk3/unstable/GtkRadioButton.html">GtkRadioButton</link></p></item>
</list>
</section>
</page>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]