From 5603512bbad193766d4d63658fa6ce2a0408045c Mon Sep 17 00:00:00 2001 From: homosapien-lcy <102019577+homosapien-lcy@users.noreply.github.com> Date: Wed, 10 May 2023 21:31:26 +0900 Subject: [PATCH] MAINT: fix DemoController in the image_from_file example (#893) After the update of traitsui, the ui requires the init() method to return a boolean that indicates whether the initiation has been successful. However, some demos have not been able to adapt to this change such as #889 . This PR aims to fix #889 by adding the boolean return to the demo. closes #889 Co-authored-by: Chengyu Liu Co-authored-by: Corran Webster --- chaco/examples/demo/basic/image_from_file.py | 1 + 1 file changed, 1 insertion(+) diff --git a/chaco/examples/demo/basic/image_from_file.py b/chaco/examples/demo/basic/image_from_file.py index fde4eded5..71c1f4523 100644 --- a/chaco/examples/demo/basic/image_from_file.py +++ b/chaco/examples/demo/basic/image_from_file.py @@ -183,6 +183,7 @@ def init(self, info): Overridden here to assign the 'view' trait. """ self.view = info.object + return True def save(self, ui_info): """