TI System Menu

This submenu is located under More Modules.

Note: When creating a new program that uses this module, it is recommended to use the Data Sharing program type. This will ensure that all the relevant modules are imported.

Item

Description

from ti_system import *

Imports all methods (functions) from the ti_system module.

recall_value("name")

Recalls a predefined OS variable (value) named "name".

store_value("name",value)

Stores a Python variable (value) to an OS variable named "name".

recall_list("name")

Recalls a predefined OS list named "name".

store_list("name",list)

Stores a Python list (list) to an OS list variable named "name".

eval_function("name",value)

Evaluates a predefined OS function at the specified value.

get_platform()

Returns "hh" for handheld and "dt" for desktop.

get_key()

Returns a string representing the key pressed.

The '1' key returns "1", 'esc' returns "esc", and so on.

When called without any parameters - get_key() - it returns immediately.

When called with a parameter - get_key(1) - it waits until a key is pressed.

get_mouse()

Returns mouse coordinates as a two element tuple,

either the canvas pixel position or (-1,-1) if outside the canvas.

while get_key() != "esc":

Run the commands in the "while" loop until the "esc" key is pressed.

clear_history()

Clears the Shell history.

get_time_ms()

Returns time in milliseconds with millisecond precision.

This functionality can be used to calculate a duration rather than determine the actual clock time.