[python/turtle] Turtle::reset() method

This commit is contained in:
Léa Saviot
2018-12-06 16:07:57 +01:00
parent 9c9355deba
commit cc3beb6014
13 changed files with 71 additions and 11 deletions

View File

@@ -304,6 +304,13 @@ void ConsoleController::displaySandbox() {
stackViewController()->push(&m_sandboxController);
}
void ConsoleController::resetSandbox() {
if (!m_sandboxIsDisplayed) {
return;
}
m_sandboxController.reset();
}
/* printText is called by the Python machine.
* The text argument is not always null-terminated. */
void ConsoleController::printText(const char * text, size_t length) {