in PySide2/PyQt5 there is a very useful function that forces all pending events to be processed. Be it for example any GUI repaints, data update, etc. Im looking for something similar in Blender.
Im doing this at some point in the code:
bpy.context.window.workspace = self.get_scripting_workspace() context_window = bpy.context.window
but the context_window is never updated and still remains to be “Layout”.
How can i update the datablocks forcibly by code? is there the possibility?
Thanks in advance!