Skip to content

Commit

Permalink
MAINT: fix DemoController in the image_from_file example (#893)
Browse files Browse the repository at this point in the history
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 <cyliu@aus552cyliu.local>
Co-authored-by: Corran Webster <cwebster@enthought.com>
  • Loading branch information
3 people committed May 10, 2023
1 parent 86d9086 commit 5603512
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chaco/examples/demo/basic/image_from_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit 5603512

Please sign in to comment.