Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0ee87e6

Browse files
committed
Fix PEP8 E302, E501 and W292
1 parent 13ff1f7 commit 0ee87e6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

examples/widgets/check_buttons.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@
2121
visibility = [line.get_visible() for line in lines]
2222
check = CheckButtons(rax, labels, visibility)
2323

24+
2425
def func(label):
25-
lines[labels.index(label)].set_visible(not lines[labels.index(label)].get_visible())
26+
index = labels.index(label)
27+
lines[index].set_visible(not lines[index].get_visible())
2628
plt.draw()
2729

2830
check.on_clicked(func)

0 commit comments

Comments
 (0)