[pygtk] reference: pygtk-gtk-functions.xml: add gtk.set_interactive (bug 619802)
- From: Dieter Verfaillie <dieterv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygtk] reference: pygtk-gtk-functions.xml: add gtk.set_interactive (bug 619802)
- Date: Thu, 10 Mar 2011 21:14:39 +0000 (UTC)
commit 808012591624995b7b435bab2f9384ab10bc755c
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date: Fri Feb 18 12:22:44 2011 +0100
reference: pygtk-gtk-functions.xml: add gtk.set_interactive (bug 619802)
docs/reference/pygtk-gtk-functions.xml | 29 +++++++++++++++++++++++++++++
1 files changed, 29 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/pygtk-gtk-functions.xml b/docs/reference/pygtk-gtk-functions.xml
index 10c0077..cf87a09 100644
--- a/docs/reference/pygtk-gtk-functions.xml
+++ b/docs/reference/pygtk-gtk-functions.xml
@@ -764,6 +764,10 @@ linkend="function-gtk--remove-log-handlers">gtk.remove_log_handlers</link></meth
</methodsynopsis><methodsynopsis language="python">
<methodname><link
linkend="function-gtk--add-log-handlers">gtk.add_log_handlers</link></methodname>
+ </methodsynopsis><methodsynopsis language="python">
+ <methodname><link
+linkend="function-gtk--set-interactive">gtk.set_interactive</link></methodname>
+ <methodparam><parameter>interactive</parameter></methodparam>
</methodsynopsis></programlisting>
</refsect2>
@@ -1387,6 +1391,31 @@ event.</para>
</refsect2>
+ <refsect2 id="function-gtk--set-interactive">
+ <title>gtk.set_interactive</title>
+
+ <programlisting><methodsynopsis language="python">
+ <methodname>gtk.set_interactive</methodname>
+ <methodparam><parameter>interactive</parameter></methodparam>
+ </methodsynopsis></programlisting>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>interactive</parameter> :</term>
+ <listitem><simpara>If <literal>True</literal> interactive usage is enabled</simpara></listitem>
+ </varlistentry>
+ </variablelist>
+
+ <note>
+ <para>This function is available in PyGTK 2.16 and above.</para>
+ </note>
+
+ <para>The <function>gtk.set_interactive</function>() function can be used to
+enable or disable interactive usage of PyGTK. By default, interactive usage is switched
+on when importing gtk. You can then use PyGTK from the Python command prompt and see the
+results immediately without having to call <function>gtk.main</function>().</para>
+
+ </refsect2>
+
</refsect1>
</refentry>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]