summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2011-02-18 12:22:44 +0100
committerDieter Verfaillie <dieterv@optionexplicit.be>2011-02-21 21:44:07 +0100
commit808012591624995b7b435bab2f9384ab10bc755c (patch)
treea86f0cb26c471e76a758b24e98488066f780a264
parent6e80b39976ee203ce39a210c86a2f12ee4502ce5 (diff)
downloadpygtk-808012591624995b7b435bab2f9384ab10bc755c.tar.gz
reference: pygtk-gtk-functions.xml: add gtk.set_interactive (bug 619802)
-rw-r--r--docs/reference/pygtk-gtk-functions.xml29
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/reference/pygtk-gtk-functions.xml b/docs/reference/pygtk-gtk-functions.xml
index 10c00778..cf87a09c 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>&nbsp;:</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>