window (Window) – Optional window to associate with the device. The behaviour
of this parameter is device and operating system dependant.
It can usually be omitted for most devices.
exclusive (bool) – If True the device will be opened exclusively so that no
other application can use it. The method will raise
DeviceExclusiveException if the device cannot be opened this
way (for example, because another application has already