self._keepMonitoring = False\r
\r
def startMonitoring(self):\r
+ """Start monitoring for new text.\r
+ New text will be reported when it is detected.\r
+ @note: If monitoring has already been started, this will have no effect.\r
+ @see: L{stopMonitoring}\r
+ """\r
if self._monitorThread:\r
return\r
self._monitorThread = threading.Thread(target=self._monitor)\r
self._monitorThread.start()\r
\r
def stopMonitoring(self):\r
+ """Stop monitoring previously started with L{startMonitoring}.\r
+ @note: If monitoring has not been started, this will have no effect.\r
+ @see: L{startMonitoring}\r
+ """\r
if not self._monitorThread:\r
return\r
self._keepMonitoring = False\r
self._monitorThread = None\r
\r
def event_textChange(self):\r
+ """Fired when the text changes.\r
+ @note: It is safe to call this directly from threads other than the main thread.\r
+ """\r
self._event.set()\r
\r
def _getTextLines(self):\r