An handle on the object :type: HANDLE .. note:: The handle is automaticaly closed when the object is destroyed
(self)
| 90 | |
| 91 | @property |
| 92 | def handle(self): |
| 93 | """An handle on the object |
| 94 | |
| 95 | :type: HANDLE |
| 96 | |
| 97 | .. note:: |
| 98 | The handle is automaticaly closed when the object is destroyed |
| 99 | """ |
| 100 | if hasattr(self, "_handle"): |
| 101 | return self._handle |
| 102 | self._handle = self._get_handle() |
| 103 | dbgprint("Open handle {0} for {1}".format(hex(self._handle), self), "HANDLE") |
| 104 | return self._handle |
| 105 | |
| 106 | def wait(self, timeout=gdef.INFINITE): |
| 107 | """Wait for the object""" |
nothing calls this directly
no test coverage detected