Package diffpy :: Package pdfgui :: Package control :: Module pdflist :: Class PDFList
[hide private]
[frames] | no frames]

Class PDFList

source code

object --+    
         |    
      list --+
             |
            PDFList

list class of PDFComponent, which can be accessed through index or a
name string



Instance Methods [hide private]
 
__init__(self, *args)
Initialize...
source code
 
__getitem__(self, idnm)
Get the item by idnm...
source code
 
__setitem__(self, idnm, object)
Set the item by idnm...
source code
 
__delitem__(self, idnm)
Delete the item by idnm.
source code
 
rename(self, idnmrf, newname)
Rename an item...
source code
 
keys(self)
Get the names of the held objects.
source code
 
values(self)
Get all held objects...
source code
 
items(self)
Get name-object pairs...
source code

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

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args)
(Constructor)

source code 
Initialize

args -- argument list

Returns:
new list

Overrides: list.__init__

__getitem__(self, idnm)
(Indexing operator)

source code 
Get the item by idnm

idnm -- The index or name of the item
return: The requested object

Overrides: list.__getitem__

__setitem__(self, idnm, object)
(Index assignment operator)

source code 
Set the item by idnm

idnm -- The index or name of the item
object -- The object to be inserted

Overrides: list.__setitem__

__delitem__(self, idnm)
(Index deletion operator)

source code 
Delete the item by idnm.

idnm -- The index or name of the item

Overrides: list.__delitem__

rename(self, idnmrf, newname)

source code 
Rename an item

idnmrf -- index,name or reference to the object
newname -- new name

keys(self)

source code 
Get the names of the held objects.

return: list of names

values(self)

source code 
Get all held objects

return: list of objects

items(self)

source code 
Get name-object pairs

return: a list of tuple ( name, object)