Skip to content

Commit

Permalink
Add gray background to canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
Agustín Castro committed Feb 6, 2024
1 parent ad5e190 commit 411718f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions norfair/common_reference_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,10 @@ def handle_annotation(event):
footage_canvas_size = (footage_canvas_width, footage_canvas_height)

canvas_footage = tk.Canvas(
frame_images, width=footage_photo.width(), height=footage_photo.height()
frame_images,
width=footage_photo.width(),
height=footage_photo.height(),
bg="gray",
)
footage_image_container = canvas_footage.create_image(
0, 0, anchor=tk.NW, image=footage_photo
Expand Down Expand Up @@ -514,7 +517,10 @@ def reference_coord_chosen_in_footage(event):
reference_canvas_size = (reference_canvas_width, reference_canvas_height)

canvas_reference = tk.Canvas(
frame_images, width=reference_photo.width(), height=reference_photo.height()
frame_images,
width=reference_photo.width(),
height=reference_photo.height(),
bg="gray",
)
reference_image_container = canvas_reference.create_image(
0, 0, anchor=tk.NW, image=reference_photo
Expand Down

0 comments on commit 411718f

Please sign in to comment.