From 18b9fc1fde04d40106509af879b7972abb14d8d4 Mon Sep 17 00:00:00 2001 From: Jorge Bruned Date: Mon, 22 Apr 2024 13:45:34 +0200 Subject: [PATCH] Bind zoom listeners to menu items --- cocoviewer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cocoviewer.py b/cocoviewer.py index ffa16f4..6774062 100644 --- a/cocoviewer.py +++ b/cocoviewer.py @@ -550,6 +550,8 @@ def __init__(self, data, root, image_panel, statusbar, menu, objects_panel, slid self.menu.view.entryconfigure("BBoxes", variable=self.bboxes_on_global, command=self.menu_view_bboxes) self.menu.view.entryconfigure("Labels", variable=self.labels_on_global, command=self.menu_view_labels) self.menu.view.entryconfigure("Masks", variable=self.masks_on_global, command=self.menu_view_masks) + self.menu.view.entryconfigure("Zoom In", command=self.zoom_in) + self.menu.view.entryconfigure("Zoom Out", command=self.zoom_out) self.menu.view.colormenu.entryconfigure( "Categories", variable=self.coloring_on_global,