Package cssutils :: Package stylesheets :: Module stylesheetlist :: Class StyleSheetList
[hide private]
[frames] | no frames]

Class StyleSheetList

source code

object --+    
         |    
      list --+
             |
            StyleSheetList

Interface StyleSheetList (introduced in DOM Level 2)

The StyleSheetList interface provides the abstraction of an ordered collection of style sheets.

The items in the StyleSheetList are accessible via an integral index, starting from 0.

This Python implementation is based on a standard Python list so e.g. allows examplelist[index] usage.



Instance Methods [hide private]
 
item(self, index)
Used to retrieve a style sheet by ordinal index.
source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __hash__, __iadd__, __imul__, __init__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]
  length
The number of StyleSheets in the list.

Inherited from object: __class__

Method Details [hide private]

item(self, index)

source code 
Used to retrieve a style sheet by ordinal index. If index is greater than or equal to the number of style sheets in the list, this returns None.

Property Details [hide private]

length

The number of StyleSheets in the list. The range of valid child stylesheet indices is 0 to length-1 inclusive.
Get Method:
unreachable(self)
Set Method:
None
Delete Method:
None