def __init__ (self, id=None) : """Constructor :Parameters: - `id` (str) - a unique id for this node """ SVGElement.__init__(self,id,None,"svg:path") self._commands = []
def __init__(self, id=None): """Constructor :Parameters: - `id` (str) - a unique id for this node """ SVGElement.__init__(self, id, None, "svg:path") self._commands = []
def __init__(self, width, height, id=None): """Constructor widht and height do not define a clipping box. Hence, all objects in this group do not necessarily lie inside (width,height) :Parameters: - `width` (float) - actual width of the group. - `height` (float) - actual height of the group - `id` (str) - unique id for this element """ SVGElement.__init__(self, id, None, "svg:g") self._width = width self._height = height self._elms = []
def __init__ (self, x, y, txt, font_size = 8, id=None) : """Constructor :Parameters: - `x` (float) - x coordinate of the top left corner of the text (in svg coordinates) - `y` (float) - y coordinate of the top left corner of the text (in svg coordinates) - `txt` (str) - message to display - `font_size` (int) - height of the text - `id` (str) - unique id for this element """ SVGElement.__init__(self,id,None,"svg:text") self._x = x self._y = y self.set_text(txt,font_size)
def __init__(self, width, height, id=None): """Constructor widht and height do not define a clipping box. Hence, all objects in this group do not necessarily lie inside (width,height) :Parameters: - `width` (float) - actual width of the group. - `height` (float) - actual height of the group - `id` (str) - unique id for this element """ SVGElement.__init__(self, id, None, "svg:g") self._width = width self._height = height self._elms = []