Code: Alles auswählen
#! /usr/bin/python
# von Gerhard Rogen info@rogen.at
# version 0.1
from Tkinter import *
import os
root = Tk()
print len(os.listdir(os.getcwd()))
def start():
print len(os.listdir(os.getcwd()))
for a in range(len(os.listdir(os.getcwd()))):
datei = os.listdir(os.getcwd())[a]
if datei[-3:] == "wav":
None
os.system("lame -h '" + datei + "' '" + datei[:-4] + ".mp3' " )
print ("lame -h '" + datei + "' ' " + datei[:-4] + ".mp3 ' " )
labfertig = Label(root,text="fertig")
labfertig.pack()
butt = Button(root,text="start",command=start)
butt.pack()
mainloop()
wenn ich einfach draufklicke geht nichts.
was ist das.
p.s ich verwende linux