From 9b665b9e2ac9e130999d9ce4c19b8612399ab43d Mon Sep 17 00:00:00 2001 From: Nino Ceresa Date: Mon, 15 Jan 2024 20:21:53 +0100 Subject: [PATCH] initialise events with is_event=True --- traitsui/qt/table_editor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/traitsui/qt/table_editor.py b/traitsui/qt/table_editor.py index bf3ded6f3..7f0de7232 100644 --- a/traitsui/qt/table_editor.py +++ b/traitsui/qt/table_editor.py @@ -282,8 +282,8 @@ def init(self, parent): # Set up the required externally synchronized traits is_list = mode in ("rows", "columns", "cells") - self.sync_value(factory.click, "click", "to") - self.sync_value(factory.dclick, "dclick", "to") + self.sync_value(factory.click, "click", "to", is_event=True) + self.sync_value(factory.dclick, "dclick", "to", is_event=True) self.sync_value(factory.columns_name, "columns", is_list=True) self.sync_value(factory.selected, "selected", is_list=is_list) self.sync_value( @@ -291,7 +291,7 @@ def init(self, parent): ) self.sync_value(factory.filter_name, "filter", "from") self.sync_value(factory.filtered_indices, "filtered_indices", "to") - self.sync_value(factory.update_filter_name, "update_filter", "from") + self.sync_value(factory.update_filter_name, "update_filter", "from", is_event=True) self.auto_size = self.factory.auto_size