def watch_for(self,handler=None,handleduration=None,timeouthandler=None,eventtype=None,triggeronce=None):
        if eventtype is None:
            eventtype = self.defaultevent
        if handleduration is None:
            handleduration = self.handleduration
        if triggeronce is None:
            triggeronce = self.triggeronce

        if not (isinstance(eventtype,list) or isinstance(eventtype,tuple)):
            eventtype = [eventtype]
        for evtype in eventtype:            
            self.acceptOnce(evtype,self._handleevent,[evtype])
        print str(time.time()) + " now watching for any event in: " + str(eventtype)

        
        # register a new handler (replacing the old one, if necessary) 
        self.handler = handler
        self.timeouthandler = timeouthandler
        self.expires_at = time.time() + handleduration
        self.expires_when_triggered = triggeronce
        framework.eventmarkers.eventmarkers.send_marker(214)
        taskMgr.doMethodLater(handleduration, self._trigger_timeout, 'EventWatcher.trigger_timeout()')
Set up a new handler for the event; the handler expires after the handleduration has passed,
dataset/ETHPy150Open sccn/SNAP/src/framework/ui_elements/EventWatcher.py/EventWatcher.watch_for