Welcome

This documentation will guide you through the methods available in the Skywriter python library.

At A Glance

class skywriter.AsyncWorker(todo)[source]

Basic thread wrapper class for asyncronously running functions

Basic thread wrapper class for running functions asyncronously. Return False from your function to abort looping.

class skywriter.StoppableThread[source]

Basic stoppable thread wrapper

Adds Event for stopping the execution loop and exiting cleanly.

skywriter.airwheel()[source]
skywriter.double_tap(*args, **kwargs)[source]
skywriter.flick(*args, **kwargs)[source]
skywriter.garbage()[source]
skywriter.move()[source]
skywriter.tap(*args, **kwargs)[source]
skywriter.touch(*args, **kwargs)[source]

Airwheel

skywriter.airwheel()[source]

Bind an action to the “airhweel” gesture

Point your finger at the Skywriter and spin it in a wheel The handler will receive a rotation delta in degrees

Double Tap

skywriter.double_tap(*args, **kwargs)[source]

Bind double tap event

Parameters:
  • repeat_rate – Max number of times/second to fire the double tap event
  • position – Position of double tap to watch- north, south, east, west, center

Tap

skywriter.tap(*args, **kwargs)[source]

Bind tap event

Parameters:
  • repeat_rate – Max number of times/second to fire the touch event
  • position – Position of tap to watch- north, south, east, west, center

Touch

skywriter.touch(*args, **kwargs)[source]

Bind touch event

Parameters:
  • repeat_rate – Max number of times/second to fire the touch event
  • position – Position of touch to watch- north, south, east, west, center

Move

skywriter.move()[source]

Bind an action to move

The handler will receive x, y and z values describing the tracked finger in 3D space above the Skywriter.

Garbage

skywriter.garbage()[source]

Bind an action to the “garbage” gesture

A sort of grab-and-throw-away-garbage above the Skywriter

Flick

skywriter.flick(*args, **kwargs)[source]

Bind flick event