add selecting information as one attribute of the Rect intance, also add
sys.exit function of the button in the lastprompt