1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| """List Box 1"""
ListBox=tk.Listbox(fenetre,fg="white",bg="black",font=("Arial",13),width=50,height=40)
ListBox.place(x=100,y=100)
for root, dirs,files in os.walk(rootpath):
for filename in fnmatch.filter(files,pattern):
ListBox.insert('end',filename)
"""List Box 2"""
ListBox2=tk.Listbox(fenetre,fg="white",bg="black",font=("Arial",13),width=55,height=40)
ListBox2.place(x=1375,y=100)
def ajouter_titre():
for root, dirs,files in os.walk(rootpath):
for filename in fnmatch.filter(files,pattern):
content = filename
ListBox.insert(tk.FIRST,content.get(filename))
#ListBox.insert(tk.FIRST,content.get())
btn_generer_playlist = tkinter.Button(fenetre, text="Ajouter Titre",command=ajouter_titre,width=20,height=2,bg="#ff8d8d",fg="white",font=("Arial",11,"bold"))
btn_generer_playlist.place(x=1520, y=900)
btn_play.place(x=120, y=900)
btn_stop.place(x=220,y=900)
btn_pause.place(x=320,y=900) |
Partager