aboutsummaryrefslogtreecommitdiff
path: root/examples/get_interface_feature_infos.py
diff options
context:
space:
mode:
authormorefigs <morefigs@gmail.com>2019-01-29 10:18:57 +1100
committermorefigs <morefigs@gmail.com>2019-01-29 10:18:57 +1100
commit220fd5201be8d1a149abcf1637ed8bcc04123dfe (patch)
treecceb57ce76da1f15e08a82ceb10ef7e8ecb8cfa7 /examples/get_interface_feature_infos.py
parented8292a1427a422770c983bace843520b5da46a7 (diff)
downloadpymba-220fd5201be8d1a149abcf1637ed8bcc04123dfe.tar.gz
pymba-220fd5201be8d1a149abcf1637ed8bcc04123dfe.zip
added new usage examples
Diffstat (limited to 'examples/get_interface_feature_infos.py')
-rw-r--r--examples/get_interface_feature_infos.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/get_interface_feature_infos.py b/examples/get_interface_feature_infos.py
new file mode 100644
index 0000000..8330a3d
--- /dev/null
+++ b/examples/get_interface_feature_infos.py
@@ -0,0 +1,14 @@
+from pymba import Vimba
+
+
+if __name__ == '__main__':
+
+ with Vimba() as vmb:
+ interface = vmb.interface(0)
+ interface.open()
+
+ for feature_name in interface.feature_names():
+ feature = interface.feature(feature_name)
+ print(feature.info)
+
+ interface.close()