MCPcopy Index your code
hub / github.com/rawpython/remi / __init__

Method __init__

remi/gui.py:4612–4626  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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
4629class SvgCircle(Widget, _MixinSvgStroke, _MixinSvgFill, _MixinTransformable):

Callers

nothing calls this directly

Calls 3

__init__Method · 0.45
set_positionMethod · 0.45
set_sizeMethod · 0.45

Tested by

no test coverage detected