From 46fe64a5bfc4846398d3c9f351344e6c5ccdc252 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 9 Jul 2024 15:43:27 +0300 Subject: [PATCH] Style(wx): Remove extra spaces [skip ci] --- m_librarian/wx/ListAuthors.py | 2 +- m_librarian/wx/ListBooks.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/m_librarian/wx/ListAuthors.py b/m_librarian/wx/ListAuthors.py index 8f18a7a..b2aac25 100644 --- a/m_librarian/wx/ListAuthors.py +++ b/m_librarian/wx/ListAuthors.py @@ -25,7 +25,7 @@ class ListAuthorsPanel(GridPanel): grid.AutoSizeColLabelSize(col) if col_name == 'count': cell_attr = wx.grid.GridCellAttr() - cell_attr.SetAlignment(wx.ALIGN_RIGHT, wx. ALIGN_CENTRE) + cell_attr.SetAlignment(wx.ALIGN_RIGHT, wx.ALIGN_CENTRE) grid.SetColAttr(col, cell_attr) for row, author in enumerate(authors): for col, col_name in enumerate(columns): diff --git a/m_librarian/wx/ListBooks.py b/m_librarian/wx/ListBooks.py index aa5637a..24d24fc 100644 --- a/m_librarian/wx/ListBooks.py +++ b/m_librarian/wx/ListBooks.py @@ -96,21 +96,21 @@ class ListBooksPanel(GridPanel): grid.AutoSizeColLabelSize(col) if col == 0: cell_attr = wx.grid.GridCellAttr() - cell_attr.SetAlignment(wx.ALIGN_CENTRE, wx. ALIGN_CENTRE) + cell_attr.SetAlignment(wx.ALIGN_CENTRE, wx.ALIGN_CENTRE) grid.SetColAttr(col, cell_attr) elif col_name in ('ser_no', 'size'): cell_attr = wx.grid.GridCellAttr() - cell_attr.SetAlignment(wx.ALIGN_RIGHT, wx. ALIGN_CENTRE) + cell_attr.SetAlignment(wx.ALIGN_RIGHT, wx.ALIGN_CENTRE) grid.SetColAttr(col, cell_attr) row = 0 - grid.SetCellAlignment(row, 1, wx.ALIGN_CENTRE, wx. ALIGN_CENTRE) + grid.SetCellAlignment(row, 1, wx.ALIGN_CENTRE, wx.ALIGN_CENTRE) grid.SetCellSize(row, 1, 1, len(columns)-1) row = 1 self.book_by_row = book_by_row = {} # map {row: book} self.toggle_rows = toggle_rows = {} # map {row: [list of subrows]} autowrap_renderer = wx.grid.GridCellAutoWrapStringRenderer() for author in sorted(books_by_author): - grid.SetCellAlignment(row, 1, wx.ALIGN_LEFT, wx. ALIGN_CENTRE) + grid.SetCellAlignment(row, 1, wx.ALIGN_LEFT, wx.ALIGN_CENTRE) grid.SetCellSize(row, 1, 1, len(columns)-1) grid.SetCellValue(row, 1, u'%s' % (author,)) author_row = row @@ -125,7 +125,7 @@ class ListBooksPanel(GridPanel): else: value = u'Вне серий' grid.SetCellAlignment(row, 1, - wx.ALIGN_LEFT, wx. ALIGN_CENTRE) + wx.ALIGN_LEFT, wx.ALIGN_CENTRE) grid.SetCellSize(row, 1, 1, len(columns)-1) grid.SetCellValue(row, 1, u'%s — %s' % (book.author1, value)) -- 2.39.5