diff options
author | mathieui <mathieui@mathieui.net> | 2018-06-29 21:18:09 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2018-06-29 21:34:23 +0200 |
commit | 28ce49dcaaa1f7e958e09aff2af7d1e956796ad9 (patch) | |
tree | c1ffc7d4f9909080abd6dd2875a66f948879f00f /poezio/windows/roster_win.py | |
parent | 39695ba42d9183584edb6c6b93b02b04be67f126 (diff) | |
download | poezio-28ce49dcaaa1f7e958e09aff2af7d1e956796ad9.tar.gz poezio-28ce49dcaaa1f7e958e09aff2af7d1e956796ad9.tar.bz2 poezio-28ce49dcaaa1f7e958e09aff2af7d1e956796ad9.tar.xz poezio-28ce49dcaaa1f7e958e09aff2af7d1e956796ad9.zip |
Update poezio for the new tabs module
Diffstat (limited to 'poezio/windows/roster_win.py')
-rw-r--r-- | poezio/windows/roster_win.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/poezio/windows/roster_win.py b/poezio/windows/roster_win.py index 36c41ae6..f1490709 100644 --- a/poezio/windows/roster_win.py +++ b/poezio/windows/roster_win.py @@ -146,8 +146,8 @@ class RosterWin(Win): self.scroll_down(self.pos - self.start_pos - self.height + (self.height // 2)) # draw the roster from the cache - roster_view = self.roster_cache[self.start_pos - 1: - self.start_pos + self.height] + roster_view = self.roster_cache[self.start_pos - 1:self.start_pos + + self.height] options = { 'show_roster_sub': config.get('show_roster_subscriptions'), @@ -190,9 +190,10 @@ class RosterWin(Win): """ The header at the top """ - self.addstr('Roster: %s/%s contacts' % - (roster.get_nb_connected_contacts(), len(roster)), - to_curses_attr(get_theme().COLOR_INFORMATION_BAR)) + self.addstr( + 'Roster: %s/%s contacts' % (roster.get_nb_connected_contacts(), + len(roster)), + to_curses_attr(get_theme().COLOR_INFORMATION_BAR)) self.finish_line(get_theme().COLOR_INFORMATION_BAR) def draw_group(self, y, group, colored): @@ -206,9 +207,10 @@ class RosterWin(Win): else: self.addstr(y, 0, '[-] ') contacts = " (%s/%s)" % (group.get_nb_connected_contacts(), len(group)) - self.addstr(y, 4, - self.truncate_name(group.name, - len(contacts) + 4) + contacts) + self.addstr( + y, 4, + self.truncate_name(group.name, + len(contacts) + 4) + contacts) if colored: self._win.attroff(to_curses_attr(get_theme().COLOR_SELECTED_ROW)) self.finish_line() |