def __init__(self, image=None, imagefile="", trafo=None, duplicate=None): if duplicate is None: if not image: if not imagefile: raise ValueError, "Image must be instantiated with" " either image or imagefile" image = load_image(imagefile) ExternalGraphics.__init__(self, image, trafo, duplicate=duplicate)
def __init__(self, filename='', trafo=None, duplicate=None): if duplicate is None: if not filename: raise ValueError, 'filename must be provided' data = load_eps(filename) else: data = None ExternalGraphics.__init__(self, data, trafo, duplicate=duplicate)
def __init__(self, image=None, imagefile='', trafo=None, duplicate=None): if duplicate is None: if not image: if not imagefile: raise ValueError, 'Image must be instantiated with'\ ' either image or imagefile' image = load_image(imagefile) ExternalGraphics.__init__(self, image, trafo, duplicate=duplicate)
def __init__(self, image=None, imagefile='', trafo=None, duplicate=None): if duplicate is None: if not image: if not imagefile: raise ValueError, 'Image must be instantiated with'\ ' either image or imagefile' image = load_image(imagefile) ExternalGraphics.__init__(self, image, trafo, duplicate=duplicate) self.Embed()
def __init__(self, filename = '', trafo = None, duplicate = None): if duplicate is None: if not filename: raise ValueError, 'filename must be provided' data = load_eps(filename) else: data = None ExternalGraphics.__init__(self, data, trafo, duplicate = duplicate)