]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Correction.
authormzn <mzn@opencascade.com>
Thu, 9 Jun 2005 09:02:57 +0000 (09:02 +0000)
committermzn <mzn@opencascade.com>
Thu, 9 Jun 2005 09:02:57 +0000 (09:02 +0000)
src/PythonConsole/Makefile.in
src/PythonConsole/PythonConsole_PyConsole.h
src/PythonConsole/PythonConsole_PyEditor.cxx

index 991dd70c424bd2d0125d044d077a1f5ec841cd79..b1b1713ea202343a58a436724dbd8f237cd0a7f6 100755 (executable)
@@ -25,7 +25,8 @@ LIB_SRC= PythonConsole_PyConsole.cxx \
         PythonConsole_PyInterp.cxx             
 
 LIB_MOC = \
-       PythonConsole_PyEditor.h 
+       PythonConsole_PyEditor.h \
+       PythonConsole_PyConsole.h
 
 CPPFLAGS+= $(PYTHON_INCLUDES) $(QT_INCLUDES)
 
index a35d213c67c8eb7c630ce9465aa868e2f2f8f235..77add60186882954f6488ba11512576921ab5639 100755 (executable)
@@ -10,6 +10,8 @@ class PyInterp_base;
 
 class PYCONSOLE_EXPORT PythonConsole: public QWidget
 {
+  Q_OBJECT;
+
 public:
   PythonConsole(QWidget* parent, PyInterp_base* interp = 0 );
   virtual ~PythonConsole();
index 7ba34c58d0542e75d6cf7f752535102332e70df0..4bc6b899f108dd3f8eddc483ad025d794fc00f87 100755 (executable)
@@ -149,7 +149,7 @@ void PythonConsole_PyEditor::exec( const QString& command )
   _currentPrompt = READY_PROMPT;
   _buf.truncate(0);
   _isInHistory = false;
-  setText(_currentPrompt); 
+  setText( "\n" + _currentPrompt); 
   setText( command + "\n" ); 
   handleReturn();
 }