File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
src/Interface/Application Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -407,9 +407,21 @@ private_(new PythonConsoleWidgetPrivate)
407407
408408 setWindowTitle (" Python console" );
409409
410- PythonInterpreter::Instance ().prompt_signal_ .connect (boost::bind (&PythonConsoleEdit::prompt, private_->console_edit_ , _1));
411- PythonInterpreter::Instance ().output_signal_ .connect (boost::bind (&PythonConsoleEdit::print_output, private_->console_edit_ , _1));
412- PythonInterpreter::Instance ().error_signal_ .connect (boost::bind (&PythonConsoleEdit::print_error, private_->console_edit_ , _1));
410+ PythonInterpreter::Instance ().prompt_signal_ .connect (
411+ [this ](const std::string& m)
412+ {
413+ private_->console_edit_ ->prompt (m);
414+ });
415+ PythonInterpreter::Instance ().output_signal_ .connect (
416+ [this ](const std::string& m)
417+ {
418+ private_->console_edit_ ->print_output (m);
419+ });
420+ PythonInterpreter::Instance ().error_signal_ .connect (
421+ [this ](const std::string& m)
422+ {
423+ private_->console_edit_ ->print_error (m);
424+ });
413425
414426 showBanner ();
415427 PythonInterpreter::Instance ().importSCIRunLibrary ();
You can’t perform that action at this time.
0 commit comments