Back to index

salome-gui  6.5.0
Defines | Functions | Variables
SALOME_PYQT_Module.cxx File Reference
#include <PyInterp_Dispatcher.h>
#include "SALOME_PYQT_Module.h"
#include "SalomeApp_Application.h"
#include "SALOME_PYQT_ModuleLight.h"
#include <SALOME_LifeCycleCORBA.hxx>
#include <Container_init_python.hxx>
#include <CORBA.h>

Go to the source code of this file.

Defines

#define INIT_FUNCTION   initSalomePyQtGUILight

Functions

PyMODINIT_FUNC INIT_FUNCTION ()
SALOME_PYQT_EXPORT CAM_ModulecreateModule ()
 Module factory function.

Variables

const char * __DEFAULT_NAME__ = "SALOME_PYQT_Module"

Define Documentation

#define INIT_FUNCTION   initSalomePyQtGUILight

Definition at line 43 of file SALOME_PYQT_Module.cxx.


Function Documentation

Module factory function.

Creates an instance of SALOME_PYQT_Module object by request of an application when the module is loaded and initialized.

Returns:
new module object

Definition at line 62 of file SALOME_PYQT_Module.cxx.

                                                {

    static bool alreadyInitialized = false;
    if ( !alreadyInitialized ) {
      // call only once (see comment above) !

      PyEval_RestoreThread( KERNEL_PYTHON::_gtstate);
      INIT_FUNCTION();
      PyEval_ReleaseThread( KERNEL_PYTHON::_gtstate);
      alreadyInitialized = !alreadyInitialized;
    }
    return new SALOME_PYQT_Module();
  }
PyMODINIT_FUNC INIT_FUNCTION ( )

Variable Documentation

const char* __DEFAULT_NAME__ = "SALOME_PYQT_Module"

Definition at line 81 of file SALOME_PYQT_Module.cxx.