Module wmi :: Class _wmi_watcher
[hide private]
[frames] | no frames]

Class _wmi_watcher

source code

Helper class for WMI.watch_for below (qv)

Instance Methods [hide private]
 
__init__(self, wmi_event, is_extrinsic) source code
 
__call__(self, timeout_ms=-1)
When called, return the instance which caused the event.
source code
Class Variables [hide private]
  _event_property_map = {"TargetInstance": _wmi_object, "Previou...
Method Details [hide private]

__call__(self, timeout_ms=-1)
(Call operator)

source code 

When called, return the instance which caused the event. Supports timeout in milliseconds (defaulting to infinite). If the watcher times out, x_wmi_timed_out is raised. This makes it easy to support watching for multiple objects.


Class Variable Details [hide private]

_event_property_map

Value:
{"TargetInstance": _wmi_object, "PreviousInstance": _wmi_object}