コード例 #1
0
 def exp_swf(self, fname):
     '''SWF exporting function.  See signature of exporter.to_swf()'''
     exporter.to_swf(self.lec, self.audio.make_data(), fname)
コード例 #2
0
ファイル: deskcorder.py プロジェクト: jamoozy/deskcorder
 def exp_swf(self, fname):
   '''SWF exporting function.  See signature of exporter.to_swf()'''
   exporter.to_swf(self.lec, self.audio.make_data(), fname)
コード例 #3
0
    # valid video modules in preferred order
    VALID_V_MODULES = ['gtkgui', 'macgui', 'qtgui', 'dummy']

    # valid audio modules in preferred order
    VALID_A_MODULES = ['alsa', 'macaudio', 'qtaudio', 'dummy']

    config = parse_args(sys.argv[1:])

    if config.help_req:
        Configuration.print_usage()
        sys.exit(0)

    if config.export_fmt is not None:
        if config.export_fmt == 'swf':
            lec = fileio.load(config.file_to_load)
            exporter.to_swf(lec, lec.adats, config.file_to_load[:-4] + '.swf')
        elif config.export_fmt == 'pdf':
            lec = fileio.load(config.file_to_load)
            exporter.to_pdf(lec, config.file_to_load[:-4] + '.swf')
        elif config.export_fmt in ['dcd', 'dcb', 'dcx', 'dar', 'dct']:
            lec = fileio.load(config.file_to_load)
            fileio.save(config.file_to_load[:-3] + config.export_fmt, lec,
                        lec.adats)
        else:
            print 'Unknown flag "--exp-%s"' % config.export_fmt
        sys.exit(0)

    # Something was passed, so use that to
    if config.audio_module is not None:
        try:
            Audio = __import__(config.audio_module).Audio
コード例 #4
0
ファイル: deskcorder.py プロジェクト: jamoozy/deskcorder
  # valid video modules in preferred order
  VALID_V_MODULES = ['gtkgui', 'macgui', 'qtgui', 'dummy']

  # valid audio modules in preferred order
  VALID_A_MODULES = ['alsa', 'macaudio', 'qtaudio', 'dummy']

  config = parse_args(sys.argv[1:])

  if config.help_req:
    Configuration.print_usage()
    sys.exit(0)

  if config.export_fmt is not None:
    if config.export_fmt == 'swf':
      lec = fileio.load(config.file_to_load)
      exporter.to_swf(lec, lec.adats, config.file_to_load[:-4] + '.swf')
    elif config.export_fmt == 'pdf':
      lec = fileio.load(config.file_to_load)
      exporter.to_pdf(lec, config.file_to_load[:-4] + '.swf')
    elif config.export_fmt in ['dcd', 'dcb', 'dcx', 'dar', 'dct']:
      lec = fileio.load(config.file_to_load)
      fileio.save(config.file_to_load[:-3] + config.export_fmt, lec, lec.adats)
    else:
      print 'Unknown flag "--exp-%s"' % config.export_fmt
    sys.exit(0)

  # Something was passed, so use that to 
  if config.audio_module is not None:
    try:
      Audio = __import__(config.audio_module).Audio
    except AttributeError: