Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83e6395 commit 74aeb10Copy full SHA for 74aeb10
1 file changed
examples/user_interfaces/svg_tooltip.py
@@ -65,12 +65,12 @@
65
tree, xmlid = ET.XMLID(f.getvalue())
66
tree.set('onload', 'init(evt)')
67
68
-for i, y in enumerate(shapes):
+for i in enumerate(shapes):
69
# Hide the tooltips
70
- tooltip = xmlid['mytooltip_{:03d}'.format(i)]
+ tooltip = xmlid['mytooltip_{:03d}'.format(i[0])]
71
tooltip.set('visibility', 'hidden')
72
# Assign onmouseover and onmouseout callbacks to patches.
73
- mypatch = xmlid['mypatch_{:03d}'.format(i)]
+ mypatch = xmlid['mypatch_{:03d}'.format(i[0])]
74
mypatch.set('onmouseover', "ShowTooltip(this)")
75
mypatch.set('onmouseout', "HideTooltip(this)")
76
0 commit comments