Ignore:
Timestamp:
03/03/10 23:59:24 (15 years ago)
Author:
atzm
Message:
  • add authorship
  • fixed, list-standards with device
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tvctl/src/tvctl.py

    • Property svn:keywords changed from Id to Id Author Revision
    r32 r33  
    4141from cStringIO import StringIO 
    4242 
     43__author__ = '$Author$' 
     44__copyright__ = 'Copyright 2009-2010, Atzm WATANABE' 
     45__credits__ = [__author__] 
     46__license__ = 'BSD-2' 
     47__version__ = '$Revision$' 
     48__maintainer__ = __author__ 
     49__email__ = 'atzm@atzm.org' 
     50__status__ = 'Development' 
     51 
    4352CMD_CH = 'ivtv-tune -d %s -t %s -c %d > /dev/null 2>&1' 
    4453CMD_BL = 'v4l2-ctl -d %s -t %s > /dev/null 2>&1' 
     
    5160CMD_STND_SET = 'v4l2-ctl -d %s -s %d' 
    5261CMD_STND_GET = "v4l2-ctl -d %s -S | head -1 | awk -F= '{print $2}'" 
    53 CMD_STNDLST_GET = 'v4l2-ctl --list-standards' 
     62CMD_STNDLST_GET = 'v4l2-ctl -d %s --list-standards' 
    5463 
    5564gettext.install('tvctl') 
     
    109118 
    110119 
    111 def get_standards(): 
    112     val = commands.getoutput(CMD_STNDLST_GET) 
     120def get_standards(*args): 
     121    val = commands.getoutput(CMD_STNDLST_GET % args) 
    113122    _list = [v.split('\n') for v in val.split('\n\n')] 
    114123 
     
    256265    def __init__(self, device='/dev/video0'): 
    257266        self._device = device 
    258         self._standards = get_standards() 
     267        self._standards = get_standards(device) 
    259268        self._list_store = gtk.ListStore(gobject.TYPE_STRING) 
    260269        self._cell = gtk.CellRendererText() 
Note: See TracChangeset for help on using the changeset viewer.