From 9dcda9b6b857b033101655cdc172a4d9b97bcb70 Mon Sep 17 00:00:00 2001 From: emkael Date: Mon, 31 Oct 2016 01:26:38 +0100 Subject: * error/warning summary not raising modal anymore --- src/bidding_data_gui.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'src/bidding_data_gui.py') diff --git a/src/bidding_data_gui.py b/src/bidding_data_gui.py index 3ccaa3d..04ceabb 100644 --- a/src/bidding_data_gui.py +++ b/src/bidding_data_gui.py @@ -73,22 +73,26 @@ class BiddingGUI(tk.Frame): # inform of any warnings/errors that might have occuerd if self.__gui_logger.errors(): - self.queue(tkMessageBox.showerror, - 'Błąd!', + self.queue(res.play, 'error') + self.queue(self.log_field.insert, tk.END, ('Podczas wykonywania programu wystąpiły błędy ' + 'w liczbie: %d\n' + - 'Sprawdź dziennik logów') + 'Sprawdź dziennik logów\n') % self.__gui_logger.errors()) + self.queue(self.log_field.yview, tk.END) elif self.__gui_logger.warnings(): - self.queue(tkMessageBox.showwarning, - 'Uwaga!', + self.queue(res.play, 'warning') + self.queue(self.log_field.insert, tk.END, ('Podczas wykonywania programu wystąpiły ' + 'ostrzeżenia w liczbie: %d\n' + - 'Sprawdź dziennik logów') + 'Sprawdź dziennik logów\n') % self.__gui_logger.warnings()) + self.queue(self.log_field.yview, tk.END) else: - self.queue( - tkMessageBox.showinfo, 'Cudownie!', 'Wszystko wporzo.') + self.queue(res.play, 'success') + self.queue(self.log_field.insert, tk.END, + 'Wszystko wporzo.\n') + self.queue(self.log_field.yview, tk.END) except Exception as ex: # JFRBidding errors are logged # (and notified of after entire execution), -- cgit v1.2.3