Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Watch C{condition_to_watch} instead of whatever is watched now.  This method
disconnects internal handler from the old condition and connects it to the new
one, if new is not C{None}.  Watching a different condition might change own

@param  condition_to_watch: new condition to watch (copy state.)
@type   condition_to_watch: C{L{AbstractCondition}} or C{None}

@rtype:                     C{bool}
@returns:                   Whether self state has changed as a result.(more...)

src/p/y/py-notify-0.3.1/test/condition.py   py-notify(Download)
        condition = Condition (True)
        watcher.watch (condition)
        self.assert_(watcher.watched_condition is condition)
        watcher.store (test.simple_handler)
        watcher.watch (condition2)
        watcher.watch (condition3)
        watcher.watch (None)