You can use the getComponents method, BUT the caveat is the limitation. You either get all components in the root container which is equivalent to 1 level, but if you have nested components/templates it gets trickier.
rc = system.gui.getParentWindow(event).getRootContainer()
for component in rc.getComponents():
component.enabled=False