From 87310d58b9e3325db8b094862f18232ad61ddd63 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Sun, 28 Feb 2010 01:31:17 -0800 Subject: [PATCH] Don't talk about python much --- doc/user-tools.t2t | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/doc/user-tools.t2t b/doc/user-tools.t2t index 6d70ef74..fae20d1a 100644 --- a/doc/user-tools.t2t +++ b/doc/user-tools.t2t @@ -113,25 +113,25 @@ In addition to these, you can set input and output options for executable files: | ``filter`` | the output filter name. -=== Python scripts ===[user-tools-python] - -If APPNAME is built with Python support, then Python scripts have full access to the program -internals via builtin ``moo`` module. APPNAME classes extend classes from ``pygtk``, -in particular the ``moo.edit.Edit`` class representing documents extends the -``gtk.TextView`` class, and all editing operations can be implemented using -``pygtk`` API. - -Python scripts executed from inside APPNAME have ``LIBDIR/plugins/lib`` -and ``USERDATADIR/plugins/lib`` directories added to ``sys.path``, -you can place there APPNAME-specific modules to be used from python tools. - -Python scripts have the following variables predefined: - -| ``doc`` | the current document object. | -| ``window`` | the current editor window. -| ``buffer`` | the text buffer (a ``moo.edit.TextBuffer`` instance) of the current document. -| ``editor`` | the ``moo.edit.Editor`` object representing the text editor. Use its methods to open/close files, switch between documents and windows, etc. -| ``moo`` | the ``moo`` module, already imported so you can omit ``import moo`` statement in scripts. +% === Python scripts ===[user-tools-python] +% +% If APPNAME is built with Python support, then Python scripts have full access to the program +% internals via builtin ``moo`` module. APPNAME classes extend classes from ``pygtk``, +% in particular the ``moo.edit.Edit`` class representing documents extends the +% ``gtk.TextView`` class, and all editing operations can be implemented using +% ``pygtk`` API. +% +% Python scripts executed from inside APPNAME have ``LIBDIR/plugins/lib`` +% and ``USERDATADIR/plugins/lib`` directories added to ``sys.path``, +% you can place there APPNAME-specific modules to be used from python tools. +% +% Python scripts have the following variables predefined: +% +% | ``doc`` | the current document object. | +% | ``window`` | the current editor window. +% | ``buffer`` | the text buffer (a ``moo.edit.TextBuffer`` instance) of the current document. +% | ``editor`` | the ``moo.edit.Editor`` object representing the text editor. Use its methods to open/close files, switch between documents and windows, etc. +% | ``moo`` | the ``moo`` module, already imported so you can omit ``import moo`` statement in scripts. === Lua scripts ===[user-tools-lua]