aboutsummaryrefslogtreecommitdiff
path: root/examples/interface/get_interface_object.py
diff options
context:
space:
mode:
authormorefigs <morefigs@gmail.com>2019-01-30 13:59:01 +1100
committermorefigs <morefigs@gmail.com>2019-01-30 13:59:01 +1100
commit01587d8ba4d5a1f8371f44e719eda6547d3ed459 (patch)
tree76fc58dedcb8b4aec9dd3c260ddd7badbd3e7fd7 /examples/interface/get_interface_object.py
parent837d3af93e55b3a2714832092e1581df51cef1ec (diff)
downloadpymba-01587d8ba4d5a1f8371f44e719eda6547d3ed459.tar.gz
pymba-01587d8ba4d5a1f8371f44e719eda6547d3ed459.zip
clean up examples into separate dirs
Diffstat (limited to 'examples/interface/get_interface_object.py')
-rw-r--r--examples/interface/get_interface_object.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/interface/get_interface_object.py b/examples/interface/get_interface_object.py
new file mode 100644
index 0000000..0465223
--- /dev/null
+++ b/examples/interface/get_interface_object.py
@@ -0,0 +1,9 @@
+from pymba import Vimba
+
+
+if __name__ == '__main__':
+
+ with Vimba() as vimba:
+ # provide interface index or id
+ interface = vimba.interface(0)
+ print(interface)