Module netstat :: Class DesktopIcon
[hide private]
[frames] | no frames]

Class DesktopIcon

source code


Use an external dictionary to save space.

Instance Methods [hide private]
 
__init__(self)
Gets information about the default theme and inits the internal dictionary
source code
 
__getitem__(self, key)
Just calls parent's getitem
source code
 
__setitem__(self, key, value)
Just calls parent's setitem
source code
 
__delitem__(self, key)
Just calls parent's delitem
source code
 
get_icon(self, progname)
Finds an icon for given progname in the current theme.
source code

Inherited from UserDict.UserDict: __cmp__, __contains__, __len__, __repr__, clear, copy, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Class Methods [hide private]

Inherited from UserDict.UserDict: fromkeys

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Gets information about the default theme and inits the internal dictionary
Overrides: UserDict.UserDict.__init__

__getitem__(self, key)
(Indexing operator)

source code 
Just calls parent's getitem
Overrides: UserDict.UserDict.__getitem__

__setitem__(self, key, value)
(Index assignment operator)

source code 
Just calls parent's setitem
Overrides: UserDict.UserDict.__setitem__

__delitem__(self, key)
(Index deletion operator)

source code 
Just calls parent's delitem
Overrides: UserDict.UserDict.__delitem__

get_icon(self, progname)

source code 
Finds an icon for given progname in the current theme. If successfull, returns the icon as a pixbuf and adds it to the self dictionary (key is progname). If not successfull, returns None