swami_python

swami_python

Synopsis

void                (*SwamiguiPythonOutputFunc)         (const char *output,
                                                         gboolean is_stderr);
void                swamigui_python_set_output_func     (SwamiguiPythonOutputFunc func);
void                swamigui_python_set_root            (void);
gboolean            swamigui_python_is_initialized      (void);

Description

Details

SwamiguiPythonOutputFunc ()

void                (*SwamiguiPythonOutputFunc)         (const char *output,
                                                         gboolean is_stderr);

swamigui_python_set_output_func ()

void                swamigui_python_set_output_func     (SwamiguiPythonOutputFunc func);

Set the Python output callback function which gets called for any output to stdout or stderr from the Python interpreter.

func :

Python output callback function or NULL to use default (no redirection)

swamigui_python_set_root ()

void                swamigui_python_set_root            (void);

Runs a bit of Python code to set the swamigui.root variable to the global swamigui_root object.


swamigui_python_is_initialized ()

gboolean            swamigui_python_is_initialized      (void);

Check if Python sub system is initialized and ready for action.

Returns :

TRUE if initialized, FALSE otherwise