Package empro :: Module empro :: Module core :: Class ScriptList
[frames] | no frames]

Class ScriptList

Updatable --+    
            |    
   Selectable --+
                |
               ScriptList

Manages the list of scripts.

Class Hierarchy for ScriptList
Class Hierarchy for ScriptList

Instance Methods
 
__contains__(x, y)
y in x
 
__delitem__(x, y)
del x[y]
 
__getitem__(x, y)
x[y]
 
__len__(x)
len(x)
 
__setitem__(x, i, y)
x[i]=y
bool
append(iScript)
Appends a Script to the list.
 
at(...)
No documentation available.
None
clear()
Clear the list.
 
contains(...)
No documentation available.
int
index(iScript)
Retrieves the index of a script.
bool
insert(iIndex, iScript)
Inserts a Script into the list.
bool
remove(iIndex)
Removes a Script.
 
replace(...)
No documentation available.
int
size()
Returns the size of the list.
None
swap(iIndex, iIndex)
Swaps two scripts.

Inherited from Selectable: clone, isSelected

Inherited from Updatable: __enter__, __exit__, hash, isValid, reasonWhyInvalid

Properties

Inherited from Selectable: metaData, name, notes

Method Details

append(iScript)

 

Appends a Script to the list.

Parameters:
  • iScript (Script) - Script to add.
Returns: bool

index(iScript)

 

Retrieves the index of a script.

Parameters:
  • iScript (Script) - Script to query.
Returns: int

insert(iIndex, iScript)

 

Inserts a Script into the list.

Parameters:
  • iIndex (int) - Index of where to insert the new element.
  • iScript (Script) - Script to add.
Returns: bool

remove(iIndex)

 

Removes a Script.

Parameters:
  • iIndex (int) - Index of the Script to remove.
Returns: bool

swap(iIndex, iIndex)

 

Swaps two scripts.

Parameters:
  • iIndex (int) - Index of the first script.
  • iIndex (int) - Index of the second script.
Returns: None