summaryrefslogtreecommitdiff
path: root/docs/reference/pygtk-gtk-functions.xml
diff options
context:
space:
mode:
Diffstat (limited to 'docs/reference/pygtk-gtk-functions.xml')
-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>