console

This module gives access to the console.

Alert

A class representing an alert.

Example:

    alert = console.Alert.alertWithTitle("Hello", message="Hello World!")
    alert.addAction("Ok")
    alert.addCancelAction("Cancel")
    if (alert.show() == "Ok"):
        print("Good Bye!")
    

I/O

clear()

Clears the console.

input(prompt)

Requests input with given prompt.

print(*objects, sep, end, error)

Prints to the Pyto console, not to the stdout. Works as the builtin print function but does not support printing to a custom file. Pyto catches by default the stdout and the stderr, so use the builtin function instead. This function is mainly for internal use.