You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I am trying to look inside what is returned from these methods, such as man = gp.gp_camera_get_manual(camera) for example, and it gives me this array [-6, <Swig Object of type 'CameraText *' at 0x76a3b880>]
how can I look at what is inside this swig object as a string or list?
The text was updated successfully, but these errors were encountered:
The second element is a CameraText object (Python wrapper around a C struct) that has one member called text. See http://www.gphoto.org/doc/api/structCameraText.html for more detail. You can access the text string by using str() as in the choose-camera.py example or as a Python attribute, in your case this would be man[1].text.
Hello. I am trying to look inside what is returned from these methods, such as
man = gp.gp_camera_get_manual(camera)
for example, and it gives me this array[-6, <Swig Object of type 'CameraText *' at 0x76a3b880>]
how can I look at what is inside this swig object as a string or list?
The text was updated successfully, but these errors were encountered: