change uiButGetStrInfo() to use a trailing NULL arg rather then passing the number of args as an arg.

This commit is contained in:
Campbell Barton
2012-12-02 04:51:15 +00:00
parent 9865ee7637
commit f7f4148b40
8 changed files with 26 additions and 17 deletions

View File

@@ -218,6 +218,14 @@ The next example is an equivalent single line version of the script above which
``code.interact`` can be added at any line in the script and will pause the script an launch an interactive interpreter in the terminal, when you're done you can quit the interpreter and the script will continue execution.
If you have **IPython** installed you can use their ``embed()`` function which will implicitly use the current namespace, this has autocomplete and some useful features that the standard python eval-loop doesn't have.
.. code-block:: python
import IPython
IPython.embed()
Admittedly this highlights the lack of any python debugging support built into blender, but its still handy to know.
.. note::