]> git.phdru.name Git - m_librarian.git/commitdiff
Style(wx): Remove extra spaces
authorOleg Broytman <phd@phdru.name>
Tue, 9 Jul 2024 12:43:27 +0000 (15:43 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 9 Jul 2024 13:33:59 +0000 (16:33 +0300)
[skip ci]

m_librarian/wx/ListAuthors.py
m_librarian/wx/ListBooks.py

index 8f18a7a6c29ec42aa1a96f103f363189e681fa07..b2aac2501dd75f1c38d0134609549157b103d9bf 100644 (file)
@@ -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):
index aa5637a798964fee73e09615aba43acb424073e8..24d24fc9fc5441a1d3758b9a7b07ac9479b5c7f7 100644 (file)
@@ -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))