Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0ee87e6

Browse filesBrowse files
committed
Fix PEP8 E302, E501 and W292
1 parent 13ff1f7 commit 0ee87e6
Copy full SHA for 0ee87e6

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎examples/widgets/check_buttons.py

Copy file name to clipboardExpand all lines: examples/widgets/check_buttons.py
+3-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.