Package Camelot :: Package camelot :: Package view :: Module art :: Class Pixmap
[frames] | no frames]

Class Pixmap

source code


Load pixmaps from the camelot art library
Instance Methods
 
__init__(self, path, module=None)
'/' as a path separator :param module: the module that contains the art directory, if None is given this will be camelot
source code
 
__unicode__(self) source code
 
__repr__(self)
repr(x)
source code
 
fullpath(self)
Obsolete : avoid this method, since it will copy the resource file from its package and copy it to a temp folder if the resource is packaged.
source code
 
getQPixmap(*args, **kwargs)
QPixmaps can only be used in the gui thread
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, path, module=None)
(Constructor)

source code 
'/' as a path separator :param module: the module that contains the art directory, if None is given this will be camelot
Parameters:
  • path - the path of the pixmap relative to the art directory, use
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

getQPixmap(*args, **kwargs)

source code 
QPixmaps can only be used in the gui thread
Decorators:
  • @gui_function