getParent()
Posted: Sun Jul 25, 2021 12:28 pm
Python 2.7
The api documentation says I can do
However, that just provides
Attempting to iterate through the object shows a little bit more, but nothing really useful and there do not even appear to be objects for the Parent (like a device handle), etc.
Is there any sample code for using the object reti=urned from getParent()?
The api documentation says I can do
Code: Select all
parent = ch.getParent()
print("Parent: " + str(parent))
Code: Select all
<Phidget22.Phidget.Phidget instance at 0x1011b2ea8>
Code: Select all
var:_onError, val:None
var:handle, val:c_void_p(140473406883328)
var:_ErrorFactory, val:<class 'ctypes.CFunctionType'>
var:_PropertyChange, val:None
var:_DetachFactory, val:<class 'ctypes.CFunctionType'>
var:_onDetach, val:None
var:_AttachFactory, val:<class 'ctypes.CFunctionType'>
var:_Attach, val:None
var:_PropertyChangeFactory, val:<class 'ctypes.CFunctionType'>
var:_onAttach, val:None
var:_Detach, val:None
var:_onPropertyChange, val:None