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

Skip to content

Commit 6e24047

Browse files
committed
made changes to widgets.CheckButtons.get_status() conform to pep8
1 parent 316fdbf commit 6e24047

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

lib/matplotlib/tests/test_widgets.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,14 +258,16 @@ def test_lasso_selector():
258258
check_lasso_selector(useblit=False, lineprops=dict(color='red'))
259259
check_lasso_selector(useblit=True, button=1)
260260

261+
261262
@cleanup
262263
def test_CheckButtons():
263264
ax = get_ax()
264-
check = widgets.CheckButtons(ax,('a','b','c'),(True,False,True))
265-
assert check.get_status() == [True,False,True]
265+
check = widgets.CheckButtons(ax, ('a', 'b', 'c'), (True, False, True))
266+
assert check.get_status() == [True, False, True]
266267
check.set_active(0)
267-
assert check.get_status() == [False,False,True]
268+
assert check.get_status() == [False, False, True]
269+
268270
def clicked_function():
269271
pass
270272
cid = check.on_clicked(clicked_function)
271-
check.disconnect(cid)
273+
check.disconnect(cid)

lib/matplotlib/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ def set_active(self, index):
602602
return
603603
for cid, func in six.iteritems(self.observers):
604604
func(self.labels[index].get_text())
605-
605+
606606
def get_status(self):
607607
"""
608608
returns a tuple of the status (True/False) of all of the check buttons

0 commit comments

Comments
 (0)