-
Notifications
You must be signed in to change notification settings - Fork 0
Documentation
This is the official documentation for Tonpy.
START is used to mark the beginning of the code (optional). If you have a START, you will also need a STOP, otherwise returns a No_STOP_Error.
Works just like print(), but not with as many arguments.
Aliases: display(), show().
display(*text, sep: str | None = " ", End="\n") -> NoneWorks just like input().
Aliases: read, read_from_keyboard, keyboard
read(prompt: str = "") -> strIs basically read() but attempts to convert the input into an int. If it fails, it will return a string.
Aliases: A_read(), auto_read(), read_auto()
Aread(prompt: str = "") -> str | int | boolAliases: sleep(), wait()
sleep(seconds: float | int, /) -> NoneWaits seconds seconds.
Aliases: wait_until(), waituntil()
wait_until(expression: str = 'False', is_bool: bool = True, timeout: float = 0.50) -> NoneIt will wait timeout seconds constantly until the expression has the same value as is_bool (by using eval()).
Clears the screen. (seems pretty self-explenatory).
Aliases: clear_screen(), clear(), cls().
Stops the program from closing by constantly waiting 60 seconds (can not be changed). Using this will keep the program running even after the code finished running until the X button is pressed.
Aliases: main_loop(), loop(), mainloop(), main(), m_loop().
Marks the stop of the code. Any code past it will not be ran. Needs to be paired with a START, otherwise returns an error.
int: nr, number, integer
str: text, txt, string
bool: maybe, boolean
None: null
True: mhm, true
False: hmh, false
Made by BossBoss2011.
Owner's note:
Please do not steal or modify the code. Use the
.exefiles in The Release if you want to use this project!