- Timestamp:
- 03/03/10 23:59:24 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tvctl/src/tvctl.py
- Property svn:keywords changed from Id to Id Author Revision
r32 r33 41 41 from cStringIO import StringIO 42 42 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 43 52 CMD_CH = 'ivtv-tune -d %s -t %s -c %d > /dev/null 2>&1' 44 53 CMD_BL = 'v4l2-ctl -d %s -t %s > /dev/null 2>&1' … … 51 60 CMD_STND_SET = 'v4l2-ctl -d %s -s %d' 52 61 CMD_STND_GET = "v4l2-ctl -d %s -S | head -1 | awk -F= '{print $2}'" 53 CMD_STNDLST_GET = 'v4l2-ctl - -list-standards'62 CMD_STNDLST_GET = 'v4l2-ctl -d %s --list-standards' 54 63 55 64 gettext.install('tvctl') … … 109 118 110 119 111 def get_standards( ):112 val = commands.getoutput(CMD_STNDLST_GET )120 def get_standards(*args): 121 val = commands.getoutput(CMD_STNDLST_GET % args) 113 122 _list = [v.split('\n') for v in val.split('\n\n')] 114 123 … … 256 265 def __init__(self, device='/dev/video0'): 257 266 self._device = device 258 self._standards = get_standards( )267 self._standards = get_standards(device) 259 268 self._list_store = gtk.ListStore(gobject.TYPE_STRING) 260 269 self._cell = gtk.CellRendererText()
Note: See TracChangeset
for help on using the changeset viewer.