def pushTrayToDB(self,event):
     print 'pushing tray'
     [trayId]=event.argBundle
     mbs=event.myRobotScript
     tList=X_ROBOT_X02DA_database.xGetTrayList()
     gAhead=1
     if sum([trayId.upper()==tEle for tEle in tList])>0:
         gAhead=wx.GetSingleChoiceIndex('Tray Already Exists, Overwrite?','UserGUI_Robot',['No','Yes'])
     if gAhead:
         X_ROBOT_X02DA_database.xCreateTray(trayId,self.mainPtr.CurTray,mbs.sequenceText)