State:New|TargetRelease:No Target|icon_bug|database:public|icon_mari|Resolution:Fixed|BugID:586970|
Problem summary
Interacting with the Display Properties of multiple Canvases at once via Python crashes Mari.
The user needs to take this approach as changing the Background colour via Python while only targeting one Canvas doesn't change this setting for all Canvas.
Customer reported version
Mari 7.0v2
Customer reported platform
Windows 10
Steps to reproduce
1. Launch Mari and open any Project.
2. Using the Python Console palette, run any Script that tries to interact with the Display Properties of multiple Canvas tabs, such as one of the following:
canvas_list = mari.canvases.list()for canvas in canvas_list: print(canvas.displayPropertyList()) for canvas in mari.canvases.list(): if canvas: try: displayPropertyList = canvas.displayPropertyList() if "Background/GradientBottom" in displayPropertyList: BG_bot = canvas.setDisplayProperty("Background/GradientBottom",bottomColor) if "Background/GradientTop" in displayPropertyList: BG_top = canvas.setDisplayProperty("Background/GradientTop",topColor) except: pass We're sorry to hear that
Please tell us why