Salome HOME
a35d213c67c8eb7c630ce9465aa868e2f2f8f235
[modules/gui.git] / src / PythonConsole / PythonConsole_PyConsole.h
1 #ifndef PythonConsole_PyConsole_H
2 #define PythonConsole_PyConsole_H
3
4 #include "PythonConsole.h"
5
6 #include <qwidget.h>
7
8 class PythonConsole_PyEditor;
9 class PyInterp_base;
10
11 class PYCONSOLE_EXPORT PythonConsole: public QWidget
12 {
13 public:
14   PythonConsole(QWidget* parent, PyInterp_base* interp = 0 );
15   virtual ~PythonConsole();
16
17   PyInterp_base* getInterp() { return myInterp; } 
18
19   void           exec( const QString& command );
20
21 protected:
22   PyInterp_base*          myInterp;
23   PythonConsole_PyEditor* myEditor;
24 };
25
26
27 #endif