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. SeegetRequestedData(...)
andrequestData(...)
.
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 ()
CallssetStop
on all threads. -
run ()
Runs all threads. Automatically removes all those that have stopped.
Wiki and documentation by Adam Furman. Find an error or have a suggestion? Send it to furmada (at) gmail dot com.
Documentation
-
Application
class -
ApplicationList
class -
Notification
class-
PermanentNotification
class
-
-
NotificationQueue
class -
DataStore
class -
ImmersionUI
class
-
State
class
-
GUI
class
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
-
-
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