Show
Ignore:
Timestamp:
11/14/08 17:48:21 (16 months ago)
Author:
JensDiemer
Message:

CodeSnippets/VideoTools?: many updates for eac3to.py

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • CodeSnippets/VideoTools/setup.py

    r1790 r1797  
    55""" 
    66 
     7from shared.tk_tools import simple_input 
    78from shared.config import VideoToolsConfig, DEFAULT_CONFIG 
     9 
     10def set_skip_size(cfg): 
     11     
     12    raw_skip_size = simple_input(       
     13        title="Setup m2ts file skip size:", 
     14        pre_lable="m2ts file skip size:", 
     15        init_value=cfg["skip_size"], 
     16        post_lable="(in Bytes)", 
     17    ) 
     18    cfg["skip_size"] = int(raw_skip_size) 
     19 
    820 
    921if __name__ == "__main__": 
     
    1628        # No new config file created, and out dir requested in the past 
    1729        cfg.ask_out_dir() 
     30     
     31    set_skip_size(cfg) 
    1832         
     33    cfg.save_config() 
    1934    cfg.debug()