Skip to content

Commit 18b9fc1

Browse files
committed
Bind zoom listeners to menu items
1 parent 703f4cd commit 18b9fc1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cocoviewer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,8 @@ def __init__(self, data, root, image_panel, statusbar, menu, objects_panel, slid
550550
self.menu.view.entryconfigure("BBoxes", variable=self.bboxes_on_global, command=self.menu_view_bboxes)
551551
self.menu.view.entryconfigure("Labels", variable=self.labels_on_global, command=self.menu_view_labels)
552552
self.menu.view.entryconfigure("Masks", variable=self.masks_on_global, command=self.menu_view_masks)
553+
self.menu.view.entryconfigure("Zoom In", command=self.zoom_in)
554+
self.menu.view.entryconfigure("Zoom Out", command=self.zoom_out)
553555
self.menu.view.colormenu.entryconfigure(
554556
"Categories",
555557
variable=self.coloring_on_global,

0 commit comments

Comments
 (0)