Skip to content
This repository was archived by the owner on Aug 24, 2024. It is now read-only.

Commit f10f14e

Browse files
authored
Fixed grammatical errors and improved dialog box summaries
1 parent 136063c commit f10f14e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pie_chart_creator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def append():
5454
pie_items.append(item)
5555
pie_items_percentage.append(percentage)
5656

57-
if explode_ in ['Y', 'Yes']:
57+
if explode_.title() in ['Y', 'Yes']:
5858
explode.append(0.1)
5959

6060
else:
@@ -64,7 +64,7 @@ def append():
6464
widget.delete(0, tk.END)
6565

6666
else:
67-
messagebox.showerror('Invalid Percentage', 'Percentage must be in number')
67+
messagebox.showerror('Invalid Percentage', 'Percentage must be a number')
6868

6969

7070
def show_register():
@@ -131,7 +131,7 @@ def _exit_():
131131

132132
def clear(window=None):
133133
if pie_items:
134-
if messagebox.askyesno('Clear Register?', 'Do you really want to clear REGISTER?'):
134+
if messagebox.askyesno('Clear Register?', 'Do you really want to clear the register?\nThis cannot be undone.'):
135135
for lists in [pie_items, pie_items_percentage, explode]:
136136
del lists[0]
137137

0 commit comments

Comments
 (0)