hscmap.watcher module

class hscmap.watcher.WatcherManager(_w: hscmap.window.Window, members: List[ForwardRef('Watcher')] = <factory>)[source]

Bases: object

Parameters:
members: List[Watcher]
new(*, watch_on, on_change)[source]
Parameters:
  • watch_on (Callable) –

  • on_change (Callable) –

clear()[source]
class hscmap.watcher.Watcher(manager: hscmap.watcher.WatcherManager, watch_on: Callable, on_change: Callable, last_value: Any)[source]

Bases: object

Parameters:
  • manager (WatcherManager) –

  • watch_on (Callable) –

  • on_change (Callable) –

  • last_value (Any) –

manager: WatcherManager
watch_on: Callable
on_change: Callable
last_value: Any
unwatch()[source]