Args: image_data (str): an url to an image x (float): the x coordinate of the top left corner of the rectangle y (float): the y coordinate of the top left corner of the rectangle w (float): width of the rectangle h (float): height
(self, image_data='', x=0, y=0, w=100, h=100, *args, **kwargs)
| 4610 | def image_data(self): del self.attributes['xlink:href'] |
| 4611 | |
| 4612 | def __init__(self, image_data='', x=0, y=0, w=100, h=100, *args, **kwargs): |
| 4613 | """ |
| 4614 | Args: |
| 4615 | image_data (str): an url to an image |
| 4616 | x (float): the x coordinate of the top left corner of the rectangle |
| 4617 | y (float): the y coordinate of the top left corner of the rectangle |
| 4618 | w (float): width of the rectangle |
| 4619 | h (float): height of the rectangle |
| 4620 | kwargs: See Widget.__init__() |
| 4621 | """ |
| 4622 | super(SvgImage, self).__init__(*args, **kwargs) |
| 4623 | self.type = 'image' |
| 4624 | self.image_data = image_data |
| 4625 | self.set_position(x, y) |
| 4626 | _MixinSvgSize.set_size(self, w, h) |
| 4627 | |
| 4628 | |
| 4629 | class SvgCircle(Widget, _MixinSvgStroke, _MixinSvgFill, _MixinTransformable): |
nothing calls this directly
no test coverage detected