Hello,
I've created a template using python, but now I need to generate a .qml file from it, I wanted to work with rendered template but I coudn't go any where
this is my example :
import string
v={'var1':'screen'}
x=string.Template("""
{
id :$var1
width :22
height :123
""")
print'Item: ', x.substitute(v)
y="""
{
id :$sm1
x :11
y :8
width :12
height :65
}
}
"""
print 'Rectangle ' , y%v
I really need your help!
thank u ^^
I've created a template using python, but now I need to generate a .qml file from it, I wanted to work with rendered template but I coudn't go any where

this is my example :
import string
v={'var1':'screen'}
x=string.Template("""
{
id :$var1
width :22
height :123
""")
print'Item: ', x.substitute(v)
y="""
{
id :$sm1
x :11
y :8
width :12
height :65
}
}
"""
print 'Rectangle ' , y%v
I really need your help!
thank u ^^