summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-11-12 19:28:34 +0100
committeremkael <emkael@tlen.pl>2016-11-12 19:28:34 +0100
commitcbb7aea388133ea71fffad5fde3baad807162d8c (patch)
treec89e7dc34605b1156f4766068f3b25788083bb06
parent54ae26df4f1cbe938eac8cfbfc6442eb2e093b4e (diff)
* saving config when app is closed with app button, not window button
-rw-r--r--bundle/bidding_data-1.1-gui.zipbin14137107 -> 14137114 bytes
-rw-r--r--bundle/bidding_data-1.1.zipbin13561444 -> 13561444 bytes
-rw-r--r--src/bidding_data_gui.py6
3 files changed, 5 insertions, 1 deletions
diff --git a/bundle/bidding_data-1.1-gui.zip b/bundle/bidding_data-1.1-gui.zip
index 2f982f1..e960ffb 100644
--- a/bundle/bidding_data-1.1-gui.zip
+++ b/bundle/bidding_data-1.1-gui.zip
Binary files differ
diff --git a/bundle/bidding_data-1.1.zip b/bundle/bidding_data-1.1.zip
index 49a5cb5..2383508 100644
--- a/bundle/bidding_data-1.1.zip
+++ b/bundle/bidding_data-1.1.zip
Binary files differ
diff --git a/src/bidding_data_gui.py b/src/bidding_data_gui.py
index a942db5..1547862 100644
--- a/src/bidding_data_gui.py
+++ b/src/bidding_data_gui.py
@@ -175,6 +175,10 @@ class BiddingGUI(tk.Frame):
log.getLogger('config').error('Could not save config file: %s', ex)
self.master.destroy()
+ def on_quit(self):
+ self.on_close()
+ self.quit()
+
# GUI message queue (for background thread interaction)
__queue = None
@@ -314,7 +318,7 @@ class BiddingGUI(tk.Frame):
self, text='OCB?!', command=self.display_info)
# application exit button
quit_btn = tk.Button(
- self, text='Koniec tego dobrego', command=self.quit)
+ self, text='Koniec tego dobrego', command=self.on_quit)
# third and fourth row, leftmost 2/3 of window width, entire cell
self.run_btn.grid(
row=2, column=0, rowspan=2, columnspan=4,