Gui: Change the editor preferences preview to Python 3

This commit is contained in:
marioalexis
2022-02-21 16:47:48 -03:00
committed by Chris Hennes
parent 33d0c735b0
commit 41ee5d85f2

View File

@@ -205,14 +205,16 @@ void DlgSettingsEditorImp::loadSettings()
ui->textEdit1->setPlainText(QString::fromLatin1(
"# Short Python sample\n"
"import sys\n"
"def foo(begin, end):\n"
" i=begin\n"
" while (i<end):\n"
" print i\n"
" i=i+1\n"
" print \"Text\"\n"
"\n"
"foo(0, 20))\n"));
"def foo(begin, end):\n"
" i = begin\n"
" while i < end:\n"
" print(i)\n"
" i = i + 1\n"
" print(\"Text\")\n"
" return None\n"
"\n"
"foo(0, 20)\n"));
// Restores the color map
ParameterGrp::handle hGrp = WindowParameter::getDefaultParameter()->GetGroup("Editor");