Skip to content

Commit

Permalink
Merge pull request #105 from ctismer/master
Browse files Browse the repository at this point in the history
fix the missing comment for remove_class
  • Loading branch information
mwcraig committed Mar 6, 2016
2 parents d120a0d + 3e18f21 commit 7e0f57b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions reducer/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,15 +472,9 @@ def set_color_for(a_widget):
def set_color(name, value):
if a_widget.toggle.value:
if not a_widget.is_sane:
# a_widget.toggle.remove_class('btn-success')
# a_widget.toggle.add_class('btn-warning')
a_widget.toggle.button_style = 'warning'
else:
# a_widget.toggle.remove_class('btn-warning')
# a_widget.toggle.add_class('btn-success')
a_widget.toggle.button_style = 'success'
else:
a_widget.toggle.remove_class('btn-success')
a_widget.toggle.remove_class('btn-warning')
a_widget.toggle.button_style = None
return set_color

0 comments on commit 7e0f57b

Please sign in to comment.