[gnome-devel-docs] tutorials python: link to page about signals in dialog widgets' pages
- From: Tiffany Antopolski <antopolski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] tutorials python: link to page about signals in dialog widgets' pages
- Date: Wed, 20 Jun 2012 22:53:02 +0000 (UTC)
commit 6d67e96b0e3c307362bdd6112d51d935ce711f37
Author: Marta Maria Casetti <mmcasetti gmail com>
Date: Mon Jun 18 07:30:20 2012 +0100
tutorials python: link to page about signals in dialog widgets' pages
platform-demos/C/aboutdialog.py.page | 5 +++++
platform-demos/C/dialog.py.page | 1 +
platform-demos/C/messagedialog.py.page | 1 +
platform-demos/C/samples/dialog.py | 2 +-
4 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/platform-demos/C/aboutdialog.py.page b/platform-demos/C/aboutdialog.py.page
index a1d44f7..3ad1fcf 100644
--- a/platform-demos/C/aboutdialog.py.page
+++ b/platform-demos/C/aboutdialog.py.page
@@ -29,6 +29,11 @@
</section>
+ <section id="methods">
+ <title>Useful methods for an AboutDialog widget</title>
+ <p>For an explanation of signals and callback functions, see <link type="seealso" xref="signals-callbacks.py.page">this page</link>.</p>
+ </section>
+
<section id="references">
<title>API References</title>
<p>
diff --git a/platform-demos/C/dialog.py.page b/platform-demos/C/dialog.py.page
index 23a7e25..ac8bde8 100644
--- a/platform-demos/C/dialog.py.page
+++ b/platform-demos/C/dialog.py.page
@@ -31,6 +31,7 @@
<section id="methods">
<title>Useful methods for a Dialog widget</title>
+ <p>For an explanation of signals and callback functions, see <link type="seealso" xref="signals-callbacks.py.page">this page</link>.</p>
<list>
<item><p>Instead of <code>set_modal(True)</code> we could have <code>set_modal(False)</code> followed by <code>set_destroy_with_parent(True)</code> that would destroy the dialog window if the main window is closed.</p></item>
<item><p><code>add_button(button_text="The Answer", response_id=42)</code>, where <code>42</code> is any integer, is an alternative to <code>add_button(button_text="text", response_id=Gtk.ResponseType.RESPONSE)</code>, where <code>RESPONSE</code> could be one of <code>OK, CANCEL, CLOSE, YES, NO, APPLY, HELP</code>, which in turn correspond to the integers <code>-5, -6,..., -11</code>.</p></item>
diff --git a/platform-demos/C/messagedialog.py.page b/platform-demos/C/messagedialog.py.page
index a0697be..7503eba 100644
--- a/platform-demos/C/messagedialog.py.page
+++ b/platform-demos/C/messagedialog.py.page
@@ -31,6 +31,7 @@
<section id="methods">
<title>Useful methods for a MessageDialog widget</title>
+ <p>For an explanation of signals and callback functions, see <link type="seealso" xref="signals-callbacks.py.page">this page</link>.</p>
<list>
<item><p>In the constructor of MessageDialog we could set flags as <code>Gtk.DialogFlags.DESTROY_WITH_PARENT</code> (to destroy the messagedialog window when its parent window is destroyed) or as <code>Gtk.DialogFlags.MODAL</code> (no interaction with other windows of the application).</p></item>
<item><p>In the constructor of MessageDialog we could set type as any of <code>Gtk.MessageType.INFO, Gtk.MessageType.WARNING, Gtk.MessageType.QUESTION, Gtk.MessageType.ERROR, Gtk.MessageType.OTHER</code> depending on what type of message we want.</p></item>
diff --git a/platform-demos/C/samples/dialog.py b/platform-demos/C/samples/dialog.py
index 335c794..b8315d1 100644
--- a/platform-demos/C/samples/dialog.py
+++ b/platform-demos/C/samples/dialog.py
@@ -14,7 +14,7 @@ class MyWindow(Gtk.ApplicationWindow):
# add the button to the window
self.add(button)
- # callbck function for the signal "clicked" of the button in the parent window
+ # callback function for the signal "clicked" of the button in the parent window
def on_button_click(self, widget):
# create a Gtk.Dialog
dialog = Gtk.Dialog()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]