summaryrefslogtreecommitdiff
path: root/src/bidding_data_gui.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-10-31 01:26:38 +0100
committeremkael <emkael@tlen.pl>2016-10-31 01:26:38 +0100
commit9dcda9b6b857b033101655cdc172a4d9b97bcb70 (patch)
tree84e2ca4cc79bbc1abada36922f2f2e442498661d /src/bidding_data_gui.py
parent2ed043878a7e6e8039d9d2164b0e189816c63fce (diff)
* error/warning summary not raising modal anymore
Diffstat (limited to 'src/bidding_data_gui.py')
-rw-r--r--src/bidding_data_gui.py20
1 files changed, 12 insertions, 8 deletions
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),