Examples

Get started

A button with a label and react on click event

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Create styles from scratch for buttons

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Create a slider and write its value on a label

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Styles

Size styles

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Background styles

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Border styles

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Outline styles

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Shadow styles

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Image styles

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Text styles

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Line styles

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Transition

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Using multiple styles

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Local styles

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Add styles to parts and states

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Extending the current theme

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Opacity and Transformations

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Animations

Start animation on an event

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Playback animation

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Animation timeline

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Events

Button click event

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Handle multiple events

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Event bubbling

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Layouts

Flex

A simple row and a column layout with flexbox

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Arrange items in rows with wrap and even spacing

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Demonstrate flex grow

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Demonstrate flex grow.

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Demonstrate column and row gap style properties

C code  

 GitHub

MicroPython code  

 GitHub Simulator

RTL base direction changes order of the items

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Grid

A simple grid

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Demonstrate cell placement and span

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Demonstrate grid's "free unit"

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Demonstrate track placement

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Demonstrate column and row gap

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Demonstrate RTL direction on grid

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Scrolling

Nested scrolling

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Snapping

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Floating button

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Styling the scrollbars

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Right to left scrolling

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Translate on scroll

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Widgets

Base object

Base objects with custom styles

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Make an object draggable

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Arc

Simple Arc

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Loader with Arc

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Bar

Simple Bar

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Styling a bar

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Temperature meter

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Stripe pattern and range value

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Bar with LTR and RTL base direction

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Custom drawer to show the current value

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Button

Simple Buttons

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Styling buttons

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Gummy button

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Button matrix

Simple Button matrix

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Custom buttons

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Calendar

Calendar with header

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Canvas

Drawing on the Canvas and rotate

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Transparent Canvas with chroma keying

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Chart

Line Chart

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Faded area line chart with custom division lines

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Axis ticks and labels with scrolling

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Show the value of the pressed points

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Display 1000 data points with zooming and scrolling

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Show cursor on the clicked point

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Scatter chart

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Stacked area chart

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Checkbox

Simple Checkboxes

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Checkboxes as radio buttons

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Colorwheel

Simple Colorwheel

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Image

Image from variable and symbol

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Image recoloring

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Rotate and zoom

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Image offset and styling

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Image button

Simple Image button

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Keyboard

Keyboard with text area

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Label

Line wrap, recoloring and scrolling

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Text shadow

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Show LTR, RTL and Chinese texts

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Draw label with gradient color

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Customize circular scrolling animation

C code  

 GitHub

MicroPython code  

 GitHub Simulator

LED

LED with custom style

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Line

Simple Line

C code  

 GitHub

MicroPython code  

 GitHub Simulator

List

Simple List

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Sorting a List using up and down buttons

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Menu

Simple Menu

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Simple Menu with root btn

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Simple Menu with custom header

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Simple Menu with floating btn to add new menu page

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Complex Menu

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Meter

Simple meter

C code  

 GitHub

MicroPython code  

 GitHub Simulator

A meter with multiple arcs

C code  

 GitHub

MicroPython code  

 GitHub Simulator

A clock from a meter

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Pie chart

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Message box

Simple Message box

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Roller

Simple Roller

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Styling the roller

C code  

 GitHub

MicroPython code  

 GitHub Simulator

add fade mask to roller

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Slider

Simple Slider

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Slider with custom style

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Slider with extended drawer

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Span

Span with custom styles

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Spinbox

Simple Spinbox

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Spinner

Simple spinner

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Switch

Simple Switch

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Table

Simple table

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Lightweighted list from table

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Tabview

Simple Tabview

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Tabs on the left, styling and no scrolling

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Textarea

Simple Text area

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Text area with password field

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Text auto-formatting

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Tabview

Tileview with content

C code  

 GitHub

MicroPython code  

 GitHub Simulator

Window

Simple window

C code  

 GitHub

MicroPython code  

 GitHub Simulator