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

Class spannedtext

source code

st=spannedtext(textlist=[])

a spannedtext can be used for text which consists of text, tspan's and tref's You can use it to add to a text element or path element. Don't add it directly to a svg or a group element. usage:

ts=tspan('this text is bold') ts.attributes['font-weight']='bold' tr=tref('#linktotext') tr.attributes['fill']='red' st=spannedtext() st.addtspan(ts) st.addtref(tr) st.addtext('This text is not bold') t=text(3,5,st)

Instance Methods [hide private]
 
__init__(self, textlist=None) source code
 
addtext(self, text='') source code
 
addtspan(self, tspan) source code
 
addtref(self, tref) source code
 
__repr__(self) source code