Subscription date : 18 August 2013
Messages : 1
|
Hi,
In self.sub_icons.AddSubIcons method use an icon that has been create from a variable containing svg code that may not have been read from a file.
This is an example of what I mean,
svgicon = "<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>" \
+ " <g id='layer1'> " \
+ " <rect id='rect1' height='48' width='48' stroke='#000' stroke-width='1' fill='none'/> " \
+ "<svg y='11'> " \
+ " <text id='day' x='16' y='1' font-size='9px' font-style='normal' font-family='Sans' fill='#000000'><tspan>A</tspan></text> " \
+ " </svg> " \
+ " <svg y='30'> " \
+ " <text id='month' x='2' y='1' font-size='18px' font-style='normal' font-family='Sans' fill='#000000'><tspan>B</tspan></text> " \
+ " </svg> " \
+ " <svg y='42'> " \
+ " <text id='year' x='12' y='1' font-size='9px' font-style='normal' font-family='Sans' fill='#000000'><tspan>C</tspan></text> " \
+ " </svg> " \
+ " </g> " \
+ " </svg> "
Thanks
version 3.2.1
Ubuntu version
Opengl
Metacity
Gnome |