Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
	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()
Exemplo n.º 5
0
	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)