from org.csstudio.opibuilder.scriptUtil import PVUtil from org.csstudio.opibuilder.scriptUtil import GUIUtil r = GUIUtil.openConfirmDialog("Are you sure you want to change the gas mix?"); if r: display.getWidget("Mix_Settings").setPropertyValue("visible", True)