Code

slightly move text labels
authorbuliabyak <buliabyak@users.sourceforge.net>
Wed, 30 Sep 2009 05:03:53 +0000 (05:03 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Wed, 30 Sep 2009 05:03:53 +0000 (05:03 +0000)
share/filters/samplify.py

index 231f05f3796696e866e923b8876a12b86838a199..b81c15b82ade0ba6e1799a71b2ab329a97e45a4e 100644 (file)
@@ -132,7 +132,7 @@ for ch in root.getchildren():
 
                 text = etree.Element(e_text, nsmap=NSS)
                 text.attrib['x']=str( q['x'] + q['width'] * (menu_shifts[menu] + 0.5) )
-                text.attrib['y']=str( q['y'] + q['height'] * (menus.index(menu) + 1.8) )
+                text.attrib['y']=str( q['y'] + q['height'] * (menus.index(menu) + 1.86) )
                 text.attrib['style']="font-size:%d;text-anchor:middle;" % (q['height']*0.08)
                 text.text = fi.attrib[a_label]
                 newroot.append(text)
@@ -143,7 +143,7 @@ for ch in root.getchildren():
 
                 text = etree.Element(e_text, nsmap=NSS)
                 text.attrib['x']=str( q['x'] + q['width'] * (menu_shifts[menu] + 0.5) )
-                text.attrib['y']=str( q['y'] + q['height'] * (menus.index(menu) + 1.9) )
+                text.attrib['y']=str( q['y'] + q['height'] * (menus.index(menu) + 1.92) )
                 text.attrib['style']="font-size:%d;text-anchor:middle;" % (q['height']*0.04)
                 text.text = fi.attrib[a_tooltip]
                 newroot.append(text)