UIKit Documentation

Getting Started

Download the UIKit.tns file here or on the downloads page and send it to your calculator; then press menu, then actions, then install as python module.

UIKit.tns Releases

Copy the example code below to get started and to test if you installed the module correctly

Basics

Initailize

Use the init() function to initailize the drawing surface

Canvas

The canvas is a list that you add conponents to. Adding other non-conponent types may causes errors though.

Main loop

This isint set up for you, but using the example below it has a loop where all logic and rendering is done. Use this for runtime events.

Global Methods

Name Description Return Type
init() Initilizes ti_draw space and sets global pen None
getStringWidth() Returns int of how many pixles wide the given text is Int
getStringHeight() Return int height of pixels of given text Int