[aravis] introspection: pixel format enum test.



commit bab402a51c947dd3fab8d8a586334d9a8abe732d
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Sun Apr 24 15:09:49 2011 +0200

    introspection: pixel format enum test.
    
    It triggers what looks like a bug in pygobject.

 tests/python/arv-pixel-format-test.py |   39 +++++++++++++++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)
---
diff --git a/tests/python/arv-pixel-format-test.py b/tests/python/arv-pixel-format-test.py
new file mode 100644
index 0000000..0196748
--- /dev/null
+++ b/tests/python/arv-pixel-format-test.py
@@ -0,0 +1,39 @@
+#!/usr/bin/env python
+
+# Aravis - Digital camera library
+#
+# Copyright (c) 2011 Emmanuel Pacaud
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General
+# Public License along with this library; if not, write to the
+# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+# Boston, MA 02111-1307, USA.
+#
+# Author: Emmanuel Pacaud <emmanuel gnome org>
+
+#  If you have installed aravis in a non standard location, you may need
+#   to make GI_TYPELIB_PATH point to the correct location. For example:
+#
+#   export GI_TYPELIB_PATH=$GI_TYPELIB_PATH:/opt/bin/lib/girepositry-1.0/
+#
+#  You may also have to give the path to libaravis.so, using LD_PRELOAD or
+#  LD_LIBRARY_PATH.
+
+import gi
+
+gi.require_version ('Aravis', '0.2')
+
+from gi.repository import Aravis
+
+print Aravis.Auto.OFF
+print Aravis.PixelFormat.MONO_8



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]