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 master flow rate?"); if r: display.getWidget("Master_Flow").setPropertyValue("visible", True)