Skip to content

Commit

Permalink
アプリ終了時のtracebackを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Shota Yamamoto committed Feb 15, 2022
1 parent 5d20bd7 commit 40964ad
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,19 +202,21 @@ def make_button(text, key=None):

while True:
event, values = main_window.read()
tab1_filename = values['tab1_file']
tab2_filename1 = values['tab2_file1']
tab2_filename2 = values['tab2_file2']
tab1_column_dict = values['tab1_column_dict']
tab2_column_dict = values['tab2_column_dict']
date1 = values['tab1_date']
date2 = values['tab2_date']
if values != None:
tab1_filename = values['tab1_file']
tab2_filename1 = values['tab2_file1']
tab2_filename2 = values['tab2_file2']
tab1_column_dict = values['tab1_column_dict']
tab2_column_dict = values['tab2_column_dict']
date1 = values['tab1_date']
date2 = values['tab2_date']

# print(f"envet: {event}")
# print(f"values: {values}")
if event == sg.WIN_CLOSED:
# print("break")
break
# print("break")
# main_window.close()
break
elif event == 'Table':
data = cleaning(tab1_filename)
show_table(data)
Expand Down Expand Up @@ -257,5 +259,3 @@ def make_button(text, key=None):
merged_data = merge(data1, data2)
_fig = make_fig(merged_data, tab2_column_dict, date2)
save(_fig)

main_window.close()

0 comments on commit 40964ad

Please sign in to comment.