def __repr__(self,indent:str='')->str: """ Get a textual representation of this object """ ret=[] ret.append('Name: '+str(self.name)) ret.append('Size: '+str(self.width)+' x '+str(self.height)) ret.append(GimpIOBase.__repr__(self,indent)) return indent+(('\n'+indent).join(ret))
def __repr__(self, indent=''): """ Get a textual representation of this object """ ret = [] ret.append('Name: ' + str(self.name)) ret.append('Size: ' + str(self.width) + ' x ' + str(self.height)) ret.append('colorMode: ' + self.COLOR_MODES[self.colorMode]) ret.append(GimpIOBase.__repr__(self, indent)) m = self.mask if m is not None: ret.append('Mask:') ret.append(m.__repr__(indent + '\t')) return indent + (('\n' + indent).join(ret))
def __repr__(self, indent=''): """ Get a textual representation of this object """ ret = [] if self.filename is not None: ret.append('Filename: ' + self.filename) ret.append('Version: ' + str(self.version)) ret.append('Size: ' + str(self.width) + ' x ' + str(self.height)) ret.append('Base Color Mode: ' + self.COLOR_MODES[self.baseColorMode]) ret.append('Precision: ' + str(self.precision)) ret.append(GimpIOBase.__repr__(self)) if self._layerPtr: ret.append('Layers: ') for l in self.layers: ret.append(l.__repr__('\t')) if self._channelPtr: ret.append('Channels: ') for ch in self.channels: ret.append(ch.__repr__('\t')) return '\n'.join(ret)