Some minor changes, nothing that really matters.

This commit is contained in:
maxneedspats 2022-08-01 00:10:58 -05:00
parent 9c1b6ad527
commit b59aeff202
2 changed files with 6 additions and 6 deletions

View file

@ -125,7 +125,7 @@ def next_image():
# Get image name and load it
image_num = (image_num + 1) % len(file_list)
load = Image.open(file_list[image_num])
# pic_label.config(text=file_list[image_num])
pic_label.config(text=file_list[image_num])
# Place image on canvas
img = ImageTk.PhotoImage(load)
@ -142,13 +142,13 @@ image_container = canvas.create_image(CANVAS_WIDTH // 2, CANVAS_HEIGHT // 2)
canvas.pack(padx=5, pady=5)
image_num = -1
# pic_label = tk.Label(text='')
# pic_label.pack(pady=5)
pic_label = tk.Label(text='')
pic_label.pack(pady=5)
next_image()
# next_button = tk.Button(text='Next', command=next_image)
# next_button.pack(pady=5)
next_button = tk.Button(text='Next', command=next_image)
next_button.pack(pady=5)
# This must be at the end of your program
window.mainloop()

View file

@ -69,7 +69,7 @@ class CarManager:
car_bottom_edge = car.ycor() - 11
car_left_edge = car.xcor() - 20
car_right_edge = car.xcor() + 20
# It's mom's spaghetti (code)
# It's mom's spaghetti code
if (
(
(other_top_edge - car_bottom_edge > 0 and car_top_edge - other_top_edge > 0)