Exemplo n.º 1
0
# 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 program 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 General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

import gphoto2

print "GPhoto version (short):", ' '.join(gphoto2.library_version(False))
print "GPhoto version (long):"
for item in gphoto2.library_version(True):
    print "   ", item

#print dir(gphoto2)

print """
CAUTION:
The following is still very much work in progress with no one working
very much on it and may thus be in a non-working state or inconsistent.
"""

print("Creating camera...")
cam = gphoto2.camera()
Exemplo n.º 2
0
# 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 program 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 General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

import gphoto2

print "GPhoto version (short):", ' '.join(gphoto2.library_version(False))
print "GPhoto version (long):"
for item in gphoto2.library_version(True):
	print "   ", item

#print dir(gphoto2)

print """
CAUTION:
The following is still very much work in progress with no one working
very much on it and may thus be in a non-working state or inconsistent.
"""

print("Creating camera...")
cam=gphoto2.camera()
Exemplo n.º 3
0
 def test_007_long(self):
     import gphoto2
     pprint(gphoto2.library_version(False))
     pprint(gphoto2.library_version(True))
Exemplo n.º 4
0
 def test_007_long(self):
     import gphoto2
     pprint(gphoto2.library_version(False))
     pprint(gphoto2.library_version(True))