Beispiel #1
0
        treeview.append_column(filesize_column)
        treeview.append_column(status_column)
        self.right_pane.pack_start(treeview, True, True, 1)


    def main(self):
        Gtk.main()

    def add_files(self):
        pass

    def browse(self):
        pass

    def convert(self):
        pass

    def createFilesTable(self):
        pass

    def createButton(self):
        pass

    def delete_items(self):
        pass

if __name__ == '__main__':
    app = Window(cmdlinefiles=m3u_extract(sys.argv[1:], mode='playlist'))
    app.main()

Beispiel #2
0
        walker = os.walk(opt.walk)
        dest_dir, dummy, files = walker.next()
        pwd = os.getcwd()
        os.chdir(dest_dir)

    outdir = ''
    if opt.outdir is not None:
        outdir = os.path.abspath(os.path.expanduser(opt.outdir))
        if not os.path.isdir(outdir):
            try:
                os.mkdir(outdir)
            except OSError:
                outdir = ''

    if opt.m3u is not None:
        files = m3u_extract(opt.m3u)
    elif opt.pls is not None:
        files = pls_extract(opt.pls)
    elif opt.xspf is not None:
        files = xspf_extract(opt.xspf)
    if opt.cdrip == True:
        files = rip_compact_disc()
        

    old_dir = ''
    total = len(files)
    fails = 0
    times = []


    def consume_queue(input_q, cpucount):