]> SALOME platform Git repositories - modules/gui.git/blobdiff - src/PythonConsole/PythonConsole_PyConsole.cxx
Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/gui.git] / src / PythonConsole / PythonConsole_PyConsole.cxx
index 9eecd0f158223ef79724136f9194e4cae8a1053d..9c8f852377101f51f431e6cc293d4acc2f0f905d 100755 (executable)
@@ -16,6 +16,8 @@
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
+#include <Python.h>
 #include "PythonConsole_PyConsole.h"
 #include "PythonConsole_PyEditor.h"
 #include "PyInterp_base.h"
@@ -63,6 +65,16 @@ void PythonConsole::exec( const QString& command )
     myEditor->exec( command );
 }
 
+/*!
+  Blocks execution of main application until command is executed
+  \param command - string with command and arguments
+*/
+void PythonConsole::execAndWait( const QString& command )
+{
+  if ( myEditor )
+    myEditor->execAndWait( command );
+}
+
 /*!
   Changes font of python console
   \param f - new font