Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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()
Esempio 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)