Module peggy :: Class Peggy
[hide private]
[frames] | no frames]

Class Peggy

source code

object --+
         |
        Peggy

Instance Methods [hide private]
 
__init__(self, package)
package: the name of the module/package you want to get ressources from
source code
 
exists(self, name)
Does the ressource name exist?
source code
 
get_filename(self, name)
get a true filesystem filename for ressource name
source code
 
get_glade(self, name, *args, **kwargs)
get ressource name as a gtk.glade.XML instance
source code
 
get_locale_dir(self, dir=None)
get ressource dir for use as a locale's directory if dir is None or not given locale is used
source code
 
get_pixbuf(self, name)
get ressource name as a gtk.gdk.pixbuf instance
source code
 
get_stream(self, name)
get ressource name as a file-like object
source code
 
get_string(self, name)
get ressource name as a string
source code
 
is_dir(self, name)
Is the ressource name a directory?
source code
 
list_dir(self, name)
list list the content of ressource name, like os.listdir
source code
 
setup_locales(self, domain=None, dir=None, use_unicode=1)
setup everything to use locales.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, package)
(Constructor)

source code 
package: the name of the module/package you want to get ressources from
Overrides: object.__init__