Skip to content

Commit

Permalink
Flake8 improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
slightlynybbled committed May 1, 2018
1 parent 9553524 commit 54e8825
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tk_tools/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -942,15 +942,18 @@ def _redraw(self):

max_per_col = 8
for i, slot in enumerate(self._slots):
slot.grid(row=i % max_per_col, column=int(i / max_per_col), sticky='ew')
slot.grid(row=i % max_per_col,
column=int(i / max_per_col), sticky='ew')

def add(self, string: (str, list)):
"""
Add a new slot to the multi-frame containing the string.
:param string: a string to insert
:return: None
"""
slot = _SlotFrame(self, remove_callback=self._redraw, entries=self._slot_columns)
slot = _SlotFrame(self,
remove_callback=self._redraw,
entries=self._slot_columns)
slot.add(string)

self._slots.append(slot)
Expand Down

0 comments on commit 54e8825

Please sign in to comment.