Gui: Change the editor preferences preview to Python 3
This commit is contained in:
committed by
Chris Hennes
parent
33d0c735b0
commit
41ee5d85f2
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user