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

Commit f6e6694

Browse files
authored
Fixed a bug in "Instructions"
1 parent f527e2c commit f6e6694

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

pie_chart_creator.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ def isfloat(self):
2626
window.rowconfigure(_, weight=1)
2727

2828
pcc_logo = tk.PhotoImage(file="PCC_Logo.png")
29-
pcc_logo_lbl = tk.Label(window, image=pcc_logo)
30-
pcc_logo_lbl.grid(column=1, columnspan=3)
29+
pcc_logo_lbl = tk.Label(window, image=pcc_logo).grid(column=1, columnspan=3)
3130

3231
pie_items = []
3332
pie_items_percentage = []
@@ -41,12 +40,11 @@ def instructions():
4140
def exit_instructions():
4241
instructions.destroy()
4342
instruction_lbl = tk.Label(
44-
master=instructions,
45-
text=instructions_file.read()
46-
)
47-
instruction_lbl.grid(row=1, column=1, sticky="W")
48-
back_to_pcc_btn = tk.Button(master=instructions, text="Back to Pie Chart Creator", command=exit_instructions)
49-
back_to_pcc_btn.grid(row=2, column=1, pady=5)
43+
master=instructions,
44+
text=instructions_file.read(),
45+
justify=tk.LEFT
46+
).grid(row=1, column=1, sticky="W")
47+
back_to_pcc_btn = tk.Button(master=instructions, text="Back to Pie Chart Creator", command=exit_instructions).grid(row=2, column=1, pady=5)
5048

5149

5250
def append():

0 commit comments

Comments
 (0)