if ( myEditor )
myEditor->exec( command );
}
+
+//****************************************************************
+void PythonConsole::setFont( const QFont& f )
+{
+ if( myEditor )
+ myEditor->setFont( f );
+}
+
+//****************************************************************
+QFont PythonConsole::font() const
+{
+ QFont res;
+ if( myEditor )
+ res = myEditor->font();
+ return res;
+}
virtual ~PythonConsole();
PyInterp_base* getInterp() { return myInterp; }
+ QFont font() const;
+ virtual void setFont( const QFont& );
void exec( const QString& command );
QString fntSet( "" );
QFont aFont = SUIT_Tools::stringToFont( fntSet );
setFont(aFont);
- setTextFormat(QTextEdit::PlainText);
+ //setTextFormat(QTextEdit::PlainText);
setUndoRedoEnabled( false );
_currentPrompt = READY_PROMPT;