Update of /cvsroot/freevo/freevo/WIP/RobShortt/helpers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv436/WIP/RobShortt/helpers

Added Files:
        testchan.py 
Log Message:
A helper for testing new settings code and figure out a good way to access them on a 
channel basis.


--- NEW FILE: testchan.py ---
import sys, string

import config
from tv.channels import ChannelList
import tv.v4l2, tv.ivtv


chans = ChannelList()


if len(sys.argv) > 1:
    cname = sys.argv[1]

    for c in chans.channels:
        print c.name
        which = string.split(c.freq[0], ':')[0]
        print which
        t_id = string.lstrip(c.freq[0], which+':')
        print t_id
        if cname in [t_id, c.freq[0]]:
            thechan = c
            break


    print '\nSettings for chan "%s": %s' % (cname, thechan.settings().keys())

else:
    for c in chans.channels:
        print c.name
        print c.freq
        print c.settings().keys()





-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to