-
Notifications
You must be signed in to change notification settings - Fork 14
Thread
furmada edited this page Jul 8, 2016
·
3 revisions
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 underevtKey
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.
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