Package obitools :: Module SVGdraw :: Class tspan
[hide private]
[frames] | no frames]

Class tspan

source code


ts=tspan(text='',**args)

a tspan element can be used for applying formatting to a textsection usage: ts=tspan('this text is bold') ts.attributes['font-weight']='bold' st=spannedtext() st.addtspan(ts) t=text(3,5,st)

Instance Methods [hide private]
 
__init__(self, text=None, **args) source code
 
__repr__(self) source code

Inherited from SVGelement: addElement, toXml

Method Details [hide private]

__init__(self, text=None, **args)
(Constructor)

source code 
Overrides: SVGelement.__init__