mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[python] A module can now ask to present a view controller
This commit is contained in:
committed by
Émilie Feral
parent
bd0b9f8a4a
commit
131df18b00
@@ -183,6 +183,11 @@ const char * ConsoleController::inputText(const char * prompt) {
|
||||
return text;
|
||||
}
|
||||
|
||||
void ConsoleController::displayViewController(ViewController * controller) {
|
||||
stackViewController()->push(controller);
|
||||
Container::activeApp()->setFirstResponder(controller); // FIXME: Shouldn't this be in Escher?
|
||||
}
|
||||
|
||||
void ConsoleController::viewWillAppear() {
|
||||
ViewController::viewWillAppear();
|
||||
loadPythonEnvironment();
|
||||
|
||||
Reference in New Issue
Block a user