Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
representation of a rectangle

constructor:
    Rect (parent, x, y, width, height[, style])

src/s/v/svgobject-0.1/test/svgobjecttest.py   svgobject(Download)
 
doc = svg.SVG(640, 300, view_box=(-100, -100, 840, 500))
r = svg.Rect(doc, 0, 0, 639, 299, svg.Style(fill="#cccccc", stroke="#0000ff", stroke_width=1))
g = svg.Group(doc, translate=(80,50), style=svg.Style(font_family="Arial,Helvetica,sans-serif"))
l = svg.Line(g, 0, 0, 500, 200, svg.Style(stroke_width=2,stroke="#ff0000"))