X-Git-Url: https://git.phdru.name/?p=m_librarian.git;a=blobdiff_plain;f=m_librarian%2Fwx%2FListBooks.py;fp=m_librarian%2Fwx%2FListBooks.py;h=c3dc7cb347fbec9e2e42d4409792a6d863fd7bb3;hp=534d380eb26ca88defc7f1f86abb8d2044482f99;hb=c2333be6e43aaf6232f58a5249c875317e93230c;hpb=4e322708bf5efdc6dce6cfa5afee26c47d914c5c diff --git a/m_librarian/wx/ListBooks.py b/m_librarian/wx/ListBooks.py index 534d380..c3dc7cb 100644 --- a/m_librarian/wx/ListBooks.py +++ b/m_librarian/wx/ListBooks.py @@ -193,9 +193,16 @@ class ListBooksPanel(GridPanel): except Exception as e: self.report_error(str(e)) else: - if not found_books: + if found_books: + self.report_success(u'Книги сохранены.') + else: self.report_error(u'Не выбрано книг для сохранения.') + def report_success(self, message): + wx.MessageBox( + message, caption='m_Librarian download finished', + style=wx.OK, parent=self.Parent) + def report_error(self, error): wx.MessageBox( error, caption='m_Librarian download error',