Skip to content

Commit

Permalink
Fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
amanusk committed Jun 13, 2020
1 parent 0a0f622 commit 445a90f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions s_tui/s_tui.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,19 +248,20 @@ def update_displayed_information(self):
any(self.summary_menu.active_sensors[source_name])):
source.update()


for graph in self.visible_graphs.values():
try:
graph.update()
except:
logging.error("Graph update failed")
except IndexError:
logging.debug("Graph update failed")
pass

# update graph summery
for summary in self.visible_summaries.values():
try:
summary.update()
except:
logging.error("Summary update failed")
except IndexError:
logging.debug("Summary update failed")
pass

# Only update clock if not is stress mode
if self.controller.stress_conroller.get_current_mode() != 'Monitor':
Expand Down
4 changes: 2 additions & 2 deletions s_tui/sturwid/ui_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ def keypress(self, size, key):
return super(ViListBox, self).keypress(size, key)


def radio_button(g, l, fn):
def radio_button(group, label, fn):
""" Inheriting radio button of urwid """
w = urwid.RadioButton(g, l, False, on_state_change=fn)
w = urwid.RadioButton(group, label, False, on_state_change=fn)
w = urwid.AttrWrap(w, 'button normal', 'button select')
return w

Expand Down

0 comments on commit 445a90f

Please sign in to comment.