diff --git a/gui/wxpython/gui_core/menu.py b/gui/wxpython/gui_core/menu.py index 5470635672e..60f041e51f7 100644 --- a/gui/wxpython/gui_core/menu.py +++ b/gui/wxpython/gui_core/menu.py @@ -121,7 +121,7 @@ def _createMenuItem( ): menuItem.Enable(False) - rhandler = eval("self.class_handler." + handler) + rhandler = eval("self.class_handler." + handler) # nosec B602 self.parent.Bind(wx.EVT_MENU, rhandler, menuItem) def GetData(self):