Skip to content

Commit

Permalink
PEP8 formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
grlee77 committed Sep 16, 2014
1 parent 3f1b8a4 commit bdd9fb0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions skimage/viewer/tests/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def get_image_viewer():
viewer += Plugin()
return viewer


@skipif(not viewer_available)
def test_check_box():
viewer = get_image_viewer()
Expand Down Expand Up @@ -43,6 +44,7 @@ def test_combo_box():
assert_equal(str(cb.val), 'c'),
assert_equal(cb.index, 2)


@skipif(not viewer_available)
def test_text_widget():
viewer = get_image_viewer()
Expand Down
5 changes: 3 additions & 2 deletions skimage/viewer/widgets/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ def val(self):

@val.setter
def val(self, i):
self._check_box.setChecked(i) # setChecked has only two states:
# 0 = unchecked, 2 = checked
# setChecked has only two states: 0 = unchecked, 2 = checked
self._check_box.setChecked(i)


4 changes: 2 additions & 2 deletions viewer_examples/plugins/tv_denoise.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from numpy import random, clip

from skimage.viewer import ImageViewer
from skimage.viewer.widgets import (Slider, CheckBox, OKCancelButtons,
SaveButtons)
from skimage.viewer.widgets import (Slider, CheckBox, OKCancelButtons,
SaveButtons)
from skimage.viewer.plugins.base import Plugin


Expand Down

0 comments on commit bdd9fb0

Please sign in to comment.