Skip to content
furmada edited this page Jul 8, 2016 · 3 revisions

Thread class

The Thread class is used to create new Thread objects that can be run by a Controller. When the Thread is added to a Controller, it will trigger the Thread's run method repeatedly, running the specified method. The optional event triggers will be activated if the thread's state is changed.

Thread ( method, **data )

Data

  • onStart = ( <method> or None )
  • onStop = ( <method> or None )
  • onPause = ( <method> or None )
  • onResume = ( <method> or None )
  • onCustom = ( <method> or None )

Object Variables

  • dict eventBindings Event bindings from **data are stored here.
  • bool pause Indicates the pause state.
  • bool stop Indicates the stop state.
  • bool firstRun Indicates whether the thread's method is yet to be run.
  • method The method to run repeatedly.

Methods

  • Thread.__defaultEvtMethod ( *args )
  • execEvent ( evtKey, *params ) Execute the method stored under evtKey with the specified args.
  • setPause ( state="toggle" ) Sets the pause state. Acts as a switch by default.
  • setStop () Stops the thread.
  • run () Runs the method specified.

Home

Getting Started

Documentation

Threads and Tasks

Applications and Notifications

The State Class and Variable

The GUI, Events, Resources, and Dialogs

The following classes are all under the GUI class, e.g. Font is actually accessed as GUI.Font.

  • Font class
  • Icons class
  • ColorPalette class
  • LongClickEvent class
  • IntermediateUpdateEvent class
  • EventQueue class
  • FunctionBar class
  • Keyboard class
  • Overlay class
  • Dialog class
    • OKDialog dialog
    • ErrorDialog dialog
    • WarningDialog dialog
    • YNDialog dialog
    • OKCancelDialog dialog
    • AskDialog dialog
    • CustomContentDialog dialog
  • NotificationMenu overlay
    • RecentAppSwitcher overlay
    • Selector overlay

GUI Components and Containers

  • Component class

The following classes are all Components, they inherit from that class.

  • Container component
  • AppContainer container
  • Button container
  • KeyboardButton container
  • TextEntryField container
  • PagedContainer container
    • GriddedPagedContainer container
    • ListedPagedContainer container
  • ButtonRow container
  • ScrollableContainer container
    • ListScrollableContainer container
    • TextScrollableContainer container
    • MultiLineTextEntryField container
  • Text component
  • MultiLineText component
  • ExpandingMultiLineText component
  • Image component
  • Slider component
  • Checkbox component
  • Switch component
  • Canvas component
  • ScrollIndicator component
Clone this wiki locally