Skip to content

Controller

Adam Furman edited this page Feb 3, 2016 · 1 revision

###Controller class The Controller class manages and runs instances of Thread and its subclasses including Task and ParallelTask. This class is automatically initialized and accessible via the state global.

Controller ()

Accessible via state.getThreadController()

Object Variables

  • list threads The list of Threads that is serviced by the Controller.
  • dict dataRequests Contains the current data requests. See getRequestedData(...) and requestData(...).

Methods

  • requestData ( fromThread, default=None ) Files a data request for the specified thread.
  • getRequestedData ( fromThread ) Gets the returned data from a previous data request on a thread.
  • addThread ( thread ) Adds a thread to the Controller.
  • removeThread ( thread ) Removes a thread from the Controller. Prints an error if unsuccessful.
  • stopAllThreads () Calls setStop on all threads.
  • run () Runs all threads. Automatically removes all those that have stopped.

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