Beispiel #1
0
 def _value(self):
     status, value = native_bt.value_bool_get(self._ptr)
     assert (status == native_bt.VALUE_STATUS_OK)
     return value > 0
Beispiel #2
0
 def _value(self):
     status, value = native_bt.value_bool_get(self._ptr)
     assert(status == native_bt.VALUE_STATUS_OK)
     return value > 0
Beispiel #3
0
 def _value(self):
     value = native_bt.value_bool_get(self._ptr)
     return value != 0
Beispiel #4
0
 def value(self):
     status, value = native_bt.value_bool_get(self._ptr)
     self._handle_status(status)
     return value