[Python] Modified the paste effect in script and shell area

When a formula is pasted in a script or in the shell, some symbols are
replaced by their equivalent in python :
x turns into *
^ turns into **
√ turns into sqrt
etc
Change-Id: If6f2a22d4f3c148c2655e0892023b0e28058a9a6
This commit is contained in:
Arthur Camouseigt
2020-06-29 15:33:10 +02:00
committed by Émilie Feral
parent 4b965a0ff6
commit 8f97a332f6
10 changed files with 261 additions and 67 deletions

View File

@@ -85,11 +85,13 @@ App::App(Snapshot * snapshot) :
m_codeStackViewController(&m_modalViewController, &m_listFooter),
m_variableBoxController(snapshot->scriptStore())
{
Clipboard::sharedClipboard()->enterPython();
}
App::~App() {
assert(!m_consoleController.inputRunLoopActive());
deinitPython();
Clipboard::sharedClipboard()->exitPython();
}
bool App::handleEvent(Ion::Events::Event event) {