parent
3c469c99d4
commit
603c0a789e
|
@ -70,11 +70,11 @@ class Boxes2INX:
|
||||||
elif a.type is boxes.argparseSections:
|
elif a.type is boxes.argparseSections:
|
||||||
t = "string"
|
t = "string"
|
||||||
else:
|
else:
|
||||||
t = { int : "int",
|
t = { int : '"int"',
|
||||||
float : "float",
|
float : '"float" precision="2"',
|
||||||
str : "string",
|
str : '"string"',
|
||||||
}.get(a.type, "string")
|
}.get(a.type, '"string"')
|
||||||
return ''' <param name="%s" type="%s" max="9999" _gui-text="%s" gui-description=%s>%s</param>\n''' % (name, t, viewname, quoteattr(a.help or ""), a.default)
|
return ''' <param name="%s" type=%s max="9999" _gui-text="%s" gui-description=%s>%s</param>\n''' % (name, t, viewname, quoteattr(a.help or ""), a.default)
|
||||||
|
|
||||||
def generator2inx(self, name, box):
|
def generator2inx(self, name, box):
|
||||||
result = [ """<?xml version="1.0" encoding="UTF-8"?>
|
result = [ """<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
Loading…
Reference in New Issue